Skip to content

Commit 8750bb5

Browse files
committed
Ignore some ANN style checks even though we don't check ANN yet.
We need more annotations to enable it.
1 parent d00d732 commit 8750bb5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ line-length = 79
115115
target-version = "py38"
116116
select = ["B", "D", "D204", "E", "F", "Q", "SIM", "UP", "W"]
117117
ignore = [
118+
# Wat, type annotations for self and cls, why is this a thing?
119+
"ANN101",
120+
"ANN102",
121+
# Private annotations are fine to leave out.
122+
"ANN202",
118123
# It's totally OK to call functions for default arguments.
119124
"B008",
120125
# raise SomeException(...) is fine.
@@ -144,8 +149,9 @@ extend-exclude = ["json"]
144149
docstring-quotes = "double"
145150

146151
[tool.ruff.per-file-ignores]
147-
"docs/*" = ["D"]
152+
"noxfile.py" = ["ANN", "D"]
153+
"docs/*" = ["ANN", "D"]
148154
"jsonschema/cli.py" = ["D", "SIM", "UP"]
149155
"jsonschema/_utils.py" = ["D"]
150156
"jsonschema/benchmarks/*" = ["D"]
151-
"jsonschema/tests/*" = ["D", "SIM"]
157+
"jsonschema/tests/*" = ["ANN", "D", "SIM"]

0 commit comments

Comments
 (0)