Skip to content

Commit 45fb7cd

Browse files
committed
One battle of the linters appears resolved.
1 parent 56c4676 commit 45fb7cd

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ repos:
1717
hooks:
1818
- id: ruff
1919
args: [--fix, --exit-non-zero-on-fix]
20-
- repo: https://github.com/PyCQA/isort
21-
rev: 5.13.2
22-
hooks:
23-
- id: isort
2420
- repo: https://github.com/psf/black
2521
rev: 24.1.1
2622
hooks:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ ignore = [
9999
"A003",
100100
"ARG", # This is all wrong whenever an interface is involved
101101
"ANN", # Just let the type checker do this
102+
"B006", # Mutable arguments require care but are OK if you don't abuse them
102103
"B008", # It's totally OK to call functions for default arguments.
103104
"B904", # raise SomeException(...) is fine.
104105
"B905", # No need for explicit strict, this is simply zip's default behavior
@@ -118,7 +119,6 @@ ignore = [
118119
"EM102",
119120
"FBT", # It's worth avoiding boolean args but I don't care to enforce it
120121
"FIX", # Yes thanks, if I could it wouldn't be there
121-
"I001", # We can't yet use ruff's isort
122122
"N", # These naming rules are silly
123123
"PLR0912", # These metrics are fine to be aware of but not to enforce
124124
"PLR0913",

referencing/jsonschema.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
from referencing import Anchor, Registry, Resource, Specification, exceptions
1111
from referencing._attrs import frozen
12-
from referencing._core import _UNSET # type: ignore[reportPrivateUsage]
13-
from referencing._core import _Unset # type: ignore[reportPrivateUsage]
14-
from referencing._core import Resolved as _Resolved, Resolver as _Resolver
12+
from referencing._core import (
13+
_UNSET, # type: ignore[reportPrivateUsage]
14+
Resolved as _Resolved,
15+
Resolver as _Resolver,
16+
_Unset, # type: ignore[reportPrivateUsage]
17+
)
1518
from referencing.typing import URI, Anchor as AnchorType, Mapping
1619

1720
#: A JSON Schema which is a JSON object

0 commit comments

Comments
 (0)