diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 086b5972..60a78019 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/jsonschema/__init__.py b/jsonschema/__init__.py index 79924cf7..d8dec8cf 100644 --- a/jsonschema/__init__.py +++ b/jsonschema/__init__.py @@ -106,12 +106,12 @@ def __getattr__(name): __all__ = [ - "Draft201909Validator", - "Draft202012Validator", "Draft3Validator", "Draft4Validator", "Draft6Validator", "Draft7Validator", + "Draft201909Validator", + "Draft202012Validator", "FormatChecker", "SchemaError", "TypeChecker", diff --git a/jsonschema/_types.py b/jsonschema/_types.py index 0cd175aa..d3ce9d66 100644 --- a/jsonschema/_types.py +++ b/jsonschema/_types.py @@ -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