From 467b7880ffd9719be5d283a794447f45907ac79b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:55:17 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.8.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] From e3a3ab6189cf3d4bcf54038b37c99769de79dd4d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 19:55:26 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jsonschema/__init__.py | 4 ++-- jsonschema/_types.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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