Skip to content

Commit

Permalink
Merge pull request #1318 from python-jsonschema/pre-commit-ci-update-…
Browse files Browse the repository at this point in the history
…config

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
Julian authored Nov 25, 2024
2 parents 9c214b1 + e3a3ab6 commit 93e0caa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
args: [--fix, lf]
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.4"
rev: "v0.8.0"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions jsonschema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ def __getattr__(name):


__all__ = [
"Draft201909Validator",
"Draft202012Validator",
"Draft3Validator",
"Draft4Validator",
"Draft6Validator",
"Draft7Validator",
"Draft201909Validator",
"Draft202012Validator",
"FormatChecker",
"SchemaError",
"TypeChecker",
Expand Down
2 changes: 1 addition & 1 deletion jsonschema/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def remove(self, *types) -> TypeChecker:
"integer",
lambda checker, instance: (
is_integer(checker, instance)
or isinstance(instance, float) and instance.is_integer()
or (isinstance(instance, float) and instance.is_integer())
),
)
draft7_type_checker = draft6_type_checker
Expand Down

0 comments on commit 93e0caa

Please sign in to comment.