Skip to content

Commit 5e959e5

Browse files
committed
Quiet some style noise.
1 parent 5fdb804 commit 5e959e5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

jsonschema/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class SchemaError(_Error):
210210

211211

212212
@define(slots=False)
213-
class _RefResolutionError(Exception):
213+
class _RefResolutionError(Exception): # noqa: PLW1641
214214
"""
215215
A ref could not be resolved.
216216
"""

pyproject.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ ignore = [
170170
"FIX", # Yes thanks, if I could it wouldn't be there
171171
"N", # These naming rules are silly
172172
"PERF203", # try/excepts in loops are sometimes needed
173+
"PLC0415", # too noisy, there are too many cases this is fine
173174
"PLR0911", # These metrics are fine to be aware of but not to enforce
174175
"PLR0912",
175176
"PLR0913",
@@ -204,6 +205,15 @@ from-first = true
204205
[tool.ruff.lint.per-file-ignores]
205206
"noxfile.py" = ["ANN", "D100", "S101", "T201"]
206207
"docs/*" = ["ANN", "D", "INP001"]
207-
"jsonschema/tests/*" = ["ANN", "D", "RUF012", "S", "PLR", "PYI024", "TRY"]
208+
"jsonschema/tests/*" = [
209+
"ANN",
210+
"D",
211+
"RUF012",
212+
"S",
213+
"PLR",
214+
"PLW1641",
215+
"PYI024",
216+
"TRY",
217+
]
208218
"jsonschema/tests/test_format.py" = ["ERA001"]
209219
"jsonschema/benchmarks/*" = ["ANN", "D", "INP001", "S101"]

0 commit comments

Comments
 (0)