From 8037c0e3190d5709c658c28ff029211dd293afe7 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Wed, 9 Jul 2025 14:36:01 +0700 Subject: [PATCH] move ruff --- positioning/pyproject.toml | 39 -------------------------------------- ruff.toml | 37 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 39 deletions(-) create mode 100644 ruff.toml diff --git a/positioning/pyproject.toml b/positioning/pyproject.toml index 7e2ac47..33ad46e 100644 --- a/positioning/pyproject.toml +++ b/positioning/pyproject.toml @@ -29,42 +29,3 @@ ruff = "^0.12.2" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" - -[tool.ruff] -fix = true -exclude = ["migrations", ".git", ".venv", "__pycache__"] -line-length = 90 -target-version = "py312" - -[tool.ruff.lint] -select = [ - "E", # pycodestyle errors - "W", # pycodestyle warning - "F", # pyflakes - "I", # isort - "UP", # pyupgrade - "N", # pep8-naming - "B", # flake8-bugbear - "C4", # flake-comprehensions - "A", # flake8 builtins - "COM", # flake8-commas - "DTZ", # flake8-datetimez - "DJ", # flake8-django - "ISC", # flake8-implicit-str-concat - "T20", # flake8-print - "SLF", # flake8-simplify - "RUF", # Ruff -] - -ignore = [ - "RUF001", - "RUF002", - "RUF003", - "RUF012", - "COM812" -] - -[tool.ruff.format] -quote-style = "double" -indent-style = "space" -line-ending = "auto" diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 0000000..d5b34bb --- /dev/null +++ b/ruff.toml @@ -0,0 +1,37 @@ +fix = true +exclude = ["migrations", ".git", ".venv", "__pycache__"] +line-length = 90 +target-version = "py312" + +[lint] +select = [ + "E", # pycodestyle errors + "W", # pycodestyle warning + "F", # pyflakes + "I", # isort + "UP", # pyupgrade + "N", # pep8-naming + "B", # flake8-bugbear + "C4", # flake-comprehensions + "A", # flake8 builtins + "COM", # flake8-commas + "DTZ", # flake8-datetimez + "DJ", # flake8-django + "ISC", # flake8-implicit-str-concat + "T20", # flake8-print + "SLF", # flake8-simplify + "RUF", # Ruff +] + +ignore = [ + "RUF001", + "RUF002", + "RUF003", + "RUF012", + "COM812" +] + +[format] +quote-style = "double" +indent-style = "space" +line-ending = "auto"