add Ruff as linter

This commit is contained in:
ducklet 2023-04-15 16:55:56 +02:00
parent d49a241c0c
commit ce525f2c7c
3 changed files with 49 additions and 2 deletions

View file

@ -1,3 +1,6 @@
[project]
requires-python = ">=3.8"
[tool.poetry]
name = "metadex"
version = "0.1.0"
@ -16,6 +19,7 @@ black = "*"
isort = "*"
autoflake = "*"
mypy = "*"
ruff = "*"
[tool.poetry.group.test.dependencies]
pytest = "^7.2.0"
@ -59,3 +63,17 @@ remove-unused-variables = true
remove-all-unused-imports = true
ignore-init-module-imports = true
ignore-pass-after-docstring = true
[tool.ruff]
# See https://beta.ruff.rs/docs/rules/
ignore = [
"E501", # line length, handled by Black
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"F", # Pyflakes
"B", # flake8-bugbear
"C4", # flake8-comprehensions checks.
]