engineervix / cookiecutter-wagtail-vix

a minimal, batteries-included, reusable project skeleton to serve as a starting point for a Wagtail project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Check Ruff config

engineervix opened this issue · comments

The configuration has changed. You might need to update like this

[tool.ruff]
exclude = [".git", "__pycache__", "node_modules", "public", "venv"]
line-length = 120
target-version = "py310"

[tool.ruff.lint]
ignore = ["E203", "E266", "E501"]
select = ["B", "C", "E", "F", "W", "B9"]

[tool.ruff.lint.isort]
known-first-party = ["project"]
section-order = [
  "future",
  "standard-library",
  "third-party",
  "first-party",
  "local-folder",
]

[tool.ruff.lint.pycodestyle]
max-doc-length = 120

[tool.ruff.lint.mccabe]
max-complexity = 10

Ref: kevinbowen777/django-start#375