Skip to content

Commit d7e51aa

Browse files
committed
Enable another ruff ruleset.
1 parent 6b0ff7c commit d7e51aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ exclude = [
8484
[tool.ruff]
8585
line-length = 79
8686
target-version = "py38"
87-
select = ["ANN", "B", "D", "E", "F", "Q", "UP", "W"]
87+
select = ["ANN", "B", "D", "E", "F", "Q", "RUF", "UP", "W"]
8888
ignore = [
8989
# Wat, type annotations for self and cls, why is this a thing?
9090
"ANN101",
@@ -121,5 +121,5 @@ docstring-quotes = "double"
121121

122122
[tool.ruff.per-file-ignores]
123123
"docs/*" = ["ANN", "D"]
124-
"referencing/tests/*" = ["ANN", "D"]
124+
"referencing/tests/*" = ["ANN", "D", "RUF012"]
125125
"noxfile.py" = ["ANN", "D"]

referencing/tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def bar_retrieve(uri): # pragma: no cover
412412
three,
413413
)
414414

415-
with pytest.raises(Exception, match="conflict.*retriev"): # noqa: B017
415+
with pytest.raises(Exception, match="conflict.*retriev"):
416416
first.combine(second, third)
417417

418418
def test_remove(self):
@@ -995,7 +995,7 @@ def test_no_anchors(self, thing):
995995
[Anchor, Registry, Resource, Specification, exceptions.PointerToNowhere],
996996
)
997997
def test_nonsubclassable(cls):
998-
with pytest.raises(Exception, match="(?i)subclassing"): # noqa: B017
998+
with pytest.raises(Exception, match="(?i)subclassing"):
999999

10001000
class Boom(cls): # pragma: no cover
10011001
pass

0 commit comments

Comments
 (0)