From 98426ee2034c8f77ac3a1b3fc22ee68f094519b0 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 14 Nov 2024 16:11:29 +0100 Subject: backend/lint: Add some more useful linters These should come in handy in the general case, especially bugbear. --- pyproject.toml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 6b013f1..20e1b75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,8 +41,18 @@ sphinx-issues = "^4.1.0" requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" -[tool.ruff] -lint.select = ["E", "F", "I", "W"] +[tool.ruff.lint] +# https://docs.astral.sh/ruff/rules/ +select = [ + "F", # pyflakes + "E", # pycodestyle + "W", # pycodestyle + "I", # isort + "UP", # pyupgrade + "B", # flake8-bugbear + "SIM", # flake8-simplify + "FURB" # refurb +] [tool.pytest.ini_options] pythonpath = ["src"] -- cgit v1.2.3-2-gb3c3