Skip to content

Commit a69e065

Browse files
committed
Switch to ruff:ignore
1 parent ddc441e commit a69e065

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535

3636

3737
def setup(app):
38-
app.connect("missing-reference", process_autodoc_missing_reference) # noqa: F821
38+
app.connect("missing-reference", process_autodoc_missing_reference) # ruff:ignore[undefined-name]

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ extend-select = [
5050
]
5151
extend-ignore = [
5252
"C90", # McCabe complexity
53-
"E221", # multiple spaces before operator
54-
"E226", # missing whitespace around arithmetic operator
55-
"E402", # module-level import not at top of file
56-
"UP031", # use f-strings instead of %
57-
"UP032", # use f-strings instead of .format
58-
"RUF067", # __init__ should contain no code
53+
"multiple-spaces-before-operator",
54+
"missing-whitespace-around-arithmetic-operator",
55+
"module-import-not-at-top-of-file",
56+
"printf-string-formatting",
57+
"f-string",
58+
"non-empty-init-module",
5959
]
6060

6161
[tool.ruff.lint.per-file-ignores]
62-
"pytools/test/*.py" = ["S102"]
63-
"doc/conf.py" = ["S102"]
62+
"pytools/test/*.py" = ["exec-builtin"]
63+
"doc/conf.py" = ["exec-builtin"]
6464

6565
[tool.ruff.lint.flake8-quotes]
6666
docstring-quotes = "double"

0 commit comments

Comments
 (0)