Skip to content

Commit

Permalink
Extend list of ruff rules
Browse files Browse the repository at this point in the history
Extend list of ruff rules based on the template provided by Scientific
Python.
  • Loading branch information
santisoler committed Dec 19, 2024
1 parent 4a71dec commit f7a42ba
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,38 @@ exclude = [
]

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"ARG", # unused arguments
# "SIM", # flake8-simplify
"I", # isort
extend-select = [
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"NPY", # NumPy specific rules
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"UP015", # ignore redundant modes in `open` (it's ok to be explicit)
"ISC001", # Conflicts with formatter
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"PT001", # conventions for parenthesis on pytest.fixture
"RET504", # unnecessary assignment: allow to assign and return
]

[tool.ruff.lint.per-file-ignores]
Expand Down

0 comments on commit f7a42ba

Please sign in to comment.