Skip to content

Commit 93e0caa

Browse files
authored
Merge pull request #1318 from python-jsonschema/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 9c214b1 + e3a3ab6 commit 93e0caa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
args: [--fix, lf]
1717
- id: trailing-whitespace
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: "v0.7.4"
19+
rev: "v0.8.0"
2020
hooks:
2121
- id: ruff
2222
args: [--fix, --exit-non-zero-on-fix]

jsonschema/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ def __getattr__(name):
106106

107107

108108
__all__ = [
109-
"Draft201909Validator",
110-
"Draft202012Validator",
111109
"Draft3Validator",
112110
"Draft4Validator",
113111
"Draft6Validator",
114112
"Draft7Validator",
113+
"Draft201909Validator",
114+
"Draft202012Validator",
115115
"FormatChecker",
116116
"SchemaError",
117117
"TypeChecker",

jsonschema/_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def remove(self, *types) -> TypeChecker:
196196
"integer",
197197
lambda checker, instance: (
198198
is_integer(checker, instance)
199-
or isinstance(instance, float) and instance.is_integer()
199+
or (isinstance(instance, float) and instance.is_integer())
200200
),
201201
)
202202
draft7_type_checker = draft6_type_checker

0 commit comments

Comments
 (0)