move ruff

This commit is contained in:
zakhy 2025-07-09 14:36:01 +07:00
parent e9889aa3be
commit 8037c0e319
2 changed files with 37 additions and 39 deletions

View File

@ -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"

37
ruff.toml Normal file
View File

@ -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"