From fdb01d72cbd4c5aafea32eca517dbf9ef7bbc62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Gl=C3=BCpker?= Date: Wed, 1 May 2024 10:02:10 +0200 Subject: Configure and run ruff (check & format) --- pyproject.toml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'pyproject.toml') diff --git a/pyproject.toml b/pyproject.toml index 8714012..dbdfe88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,47 @@ Flask = "1.1.2" beautifulsoup4 = "4.9.3" [tool.poetry.group.dev.dependencies] +ruff = "0.4.2" + +[tool.ruff] +line-length = 120 + +target-version = "py39" # wgmd.de server version + +lint.select = [ + # Pyflakes + "F", + # Pycodestyle + "E", + "W", + # flake8-bugbear + "B", + "C", + # flake8-comprehensions + "C4", + # flake8-implicit-str-concat + "ISC", + # isort + "I", + # mccabe (complexity) + "C901", + # pyupgrade / python features for selected version + "UP", + # flake8-pytest-style + "PT", + # flake8-simplify + "SIM", + # flake8-print + "T20", + # pylint + "PLC", "PLE", "PLR", "PLW", + # Ruff specific + "RUF", +] + +lint.ignore = [ + "ISC001", # causes issues with formatter +] [build-system] requires = ["poetry-core>=1.7.0"] -- cgit v1.2.3