diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c16dc3ec..689f628a 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.6.9" + rev: "v0.7.0" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/jsonschema/tests/test_cli.py b/jsonschema/tests/test_cli.py index 79d2a158..59239735 100644 --- a/jsonschema/tests/test_cli.py +++ b/jsonschema/tests/test_cli.py @@ -690,7 +690,7 @@ def test_successful_validation_of_just_the_schema_pretty_output(self): ) def test_successful_validation_via_explicit_base_uri(self): - ref_schema_file = tempfile.NamedTemporaryFile(delete=False) + ref_schema_file = tempfile.NamedTemporaryFile(delete=False) # noqa: SIM115 ref_schema_file.close() self.addCleanup(os.remove, ref_schema_file.name) @@ -711,7 +711,7 @@ def test_successful_validation_via_explicit_base_uri(self): ) def test_unsuccessful_validation_via_explicit_base_uri(self): - ref_schema_file = tempfile.NamedTemporaryFile(delete=False) + ref_schema_file = tempfile.NamedTemporaryFile(delete=False) # noqa: SIM115 ref_schema_file.close() self.addCleanup(os.remove, ref_schema_file.name)