diff --git a/pyproject.toml b/pyproject.toml index b4c34d35..a5e55a9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]