aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml23
1 files changed, 19 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 2bb8723..4bd7e1c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -21,10 +21,8 @@ psycopg2-binary = "2.9.6"
toml = "0.10.2"
[tool.poetry.dev-dependencies]
-flake8 = "6.0.0"
-flake8-annotations = "3.0.0"
-flake8-docstrings = "1.7.0"
-flake8-import-order = "0.18.2"
+pre-commit = "3.3.3"
+ruff = "0.0.280"
[tool.poetry.scripts]
start = "metricity.__main__:start"
@@ -32,3 +30,20 @@ start = "metricity.__main__:start"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
+
+[tool.ruff]
+target-version = "py310"
+extend-exclude = [".cache", "alembic"]
+ignore = [
+ "ANN002", "ANN003", "ANN101",
+ "C901",
+ "D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D416",
+ "EM",
+ "PLR0912",
+ "TRY003",
+]
+line-length = 120
+select = ["ALL"]
+
+[tool.ruff.per-file-ignores]
+"metricity/models.py" = ["A003"]