Skip to content

Commit ac0279f

Browse files
committed
feat(ruff): Enable all ruff rules by default.
This causes ne rules to be applyed automatically
1 parent df50186 commit ac0279f

1 file changed

Lines changed: 8 additions & 64 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ ignore-words-list = "datas,intoto,juli,laf,ned,parm,sade,sitl,thst,sie,mot,caris
159159
skip = "*.pdef.xml,*.pdf,*.po"
160160

161161
[tool.ruff]
162+
target-version = "py39"
162163
exclude = [
163164
".git",
164165
"__pycache__",
@@ -182,71 +183,14 @@ exclude = [
182183
]
183184

184185
# https://docs.astral.sh/ruff/rules/
185-
lint.select = [
186-
#"ERA", # eradicate
187-
"YTT", # flake8-2020
188-
"ANN", # flake8-annotations
189-
"ASYNC",# flake8-async
190-
"S", # flake8-bandit
191-
#"BLE", # flake8-blind-except
192-
"FBT", # flake8-boolean-trap
193-
"B", # flake8-bugbear
194-
"A", # flake8-builtins
195-
"COM", # flake8-commas
196-
"C4", # flake8-comprehensions
197-
#"CPY", # flake8-copyright
198-
"DTZ", # flake8-datetimez
199-
"T10", # flake8-debugger
200-
"EM", # flake8-errmsg
201-
"EXE", # flake8-executable
202-
"FIX", # flake8-fixme
203-
"FA", # flake8-future-annotations
204-
"INT", # flake8-gettext
205-
"ISC", # flake8-implicit-str-concat
206-
"ICN", # flake8-import-conventions
207-
"LOG", # flake8-logging
208-
"G", # flake8-logging-format
209-
"INP", # flake8-no-pep420
210-
"PIE", # flake8-pie
211-
"T20", # flake8-print
212-
"PYI", # flake8-pyi
213-
"PT", # flake8-pytest-style
214-
"Q", # flake8-quotes
215-
"RSE", # flake8-raise
216-
"RET", # flake8-return
217-
"SLF", # flake8-self
218-
"SIM", # flake8-simplify
219-
"SLOT", # flake8-slots
220-
"TID", # flake8-tidy-imports
221-
"TD", # flake8-todos
222-
"TC", # flake8-type-checking
223-
"ARG", # flake8-unused-arguments
224-
#"PTH", # flake8-use-pathlib
225-
"FLY", # flynt
226-
"I", # isort
227-
"C90", # maccabe
228-
"NPY", # NumPy-specific rules
229-
"PD", # pandas-vet
230-
"N", # pep8-naming
231-
"PERF", # Performance-related issues
232-
"E", # pycodestyle -Error
233-
"W", # pycodestyle - Warning
234-
#"DOC", # pydoclint
235-
"D", # pydocstyle
236-
"F", # Pyflakes
237-
"PGH", # pygrep-hooks
238-
"PL", # Pylint
239-
"PLC", # Convention
240-
"PLE", # Error
241-
"PLR", # Refactor
242-
"PLW", # Warning
243-
"UP", # pyupgrade
244-
"FURB", # refurb
245-
"RUF", # Ruff-specific codes
246-
#"TRY", # tryceratops
247-
]
248-
186+
lint.select = ["ALL"]
249187
lint.ignore = [
188+
"ERA", # eradicate
189+
"BLE", # flake8-blind-except
190+
"CPY", # flake8-copyright
191+
"PTH", # flake8-use-pathlib
192+
"DOC", # pydoclint
193+
"TRY", # tryceratops
250194
"ISC001", # to let formatter run
251195
"ANN002",
252196
"ANN003",

0 commit comments

Comments
 (0)