Skip to content

Commit 51b344b

Browse files
Merge pull request #81 from nikobockerman:ruff-all-with-ignores
Enable "ALL" ruff rules and ignore relevant rules
2 parents 22e6e4d + c6e6ed1 commit 51b344b

File tree

1 file changed

+8
-46
lines changed

1 file changed

+8
-46
lines changed

pyproject.toml

+8-46
Original file line numberDiff line numberDiff line change
@@ -57,55 +57,15 @@ typeCheckingMode = "strict"
5757
strict_optional = true
5858

5959
[tool.ruff.lint]
60-
select = [
61-
"A", # prevent using keywords that clobber python builtins
62-
"B", # bugbear: security warnings
63-
"E", # pycodestyle errors
64-
"F", # pyflakes
65-
"G", # flake8-logging-format
66-
"I", # isort
67-
"N", # pep8-naming
68-
"S", # bandit
69-
"Q", # flake8-quotes
70-
"W", # pycodestyle warnings
71-
"C4", # flake8-comprehensions
72-
"EM", # flake8-errmsg
73-
"FA", # flake8-future-annotations
74-
"PL", # pylint
75-
"PT", # flake8-pytest-style
76-
"TD", # flake8-todo
77-
"UP", # alert you when better syntax is available in your python version
78-
"ANN", # flake8-annotations
79-
"ARG", # flake8-unused-arguments
80-
"COM", # flake8-commas
81-
"ERA", # flake8-eradicate
82-
"DTZ", # flake8-datetimez
83-
"FLY", # flynt
84-
"ICN", # flake8-import-conventions
85-
"INP", # flake8-no-pep420
86-
"ISC", # flake8-implicit-str-concat
87-
"LOG", # flake8-logging
88-
"PGH", # pygrep-hooks
89-
"PIE", # flake8-pie
90-
"PTH", # flake8-use-pathlib
91-
"PYI", # flake8-pyi
92-
"RET", # flake8-return
93-
"RSE", # flake8-raise
94-
"RUF", # the ruff developer's own rules
95-
"SIM", # flake8-simplify
96-
"SLF", # flake8-self
97-
"T20", # flake8-print
98-
"TCH", # flake8-type-checking
99-
"TID", # flake8-tidy-imports
100-
"TRY", # tryceratops
101-
"YTT", # flake8-2020
102-
"FURB", # refurb
103-
"PERF", # perflint
104-
"SLOT", # flake8-slots
105-
]
60+
select = ["ALL"]
10661
ignore = [
10762
"ANN101",
63+
"C901",
10864
"COM812",
65+
"D10",
66+
"FBT001",
67+
"FBT003",
68+
"FIX",
10969
"ISC001",
11070
"PLR2004",
11171
"S101",
@@ -117,6 +77,8 @@ ignore = [
11777
"tests/**/*.py" = ["INP001"]
11878
"adventofcode/main.py" = ["T201"]
11979

80+
[tool.ruff.lint.pydocstyle]
81+
convention = "pep257"
12082

12183
[build-system]
12284
requires = ["hatchling"]

0 commit comments

Comments
 (0)