diff --git a/{{ cookiecutter.project_slug }}/Makefile b/{{ cookiecutter.project_slug }}/Makefile index 1f3d2ca..e9f1c78 100644 --- a/{{ cookiecutter.project_slug }}/Makefile +++ b/{{ cookiecutter.project_slug }}/Makefile @@ -37,7 +37,7 @@ test: lint: @echo "running ruff...." - docker compose exec {{ cookiecutter.backend_container_name }} ruff src + docker compose exec {{ cookiecutter.backend_container_name }} ruff check src black: @echo "running black...." diff --git a/{{ cookiecutter.project_slug }}/{{ cookiecutter.backend_container_name }}/pyproject.toml b/{{ cookiecutter.project_slug }}/{{ cookiecutter.backend_container_name }}/pyproject.toml index 77b8f37..f4d30a0 100644 --- a/{{ cookiecutter.project_slug }}/{{ cookiecutter.backend_container_name }}/pyproject.toml +++ b/{{ cookiecutter.project_slug }}/{{ cookiecutter.backend_container_name }}/pyproject.toml @@ -58,7 +58,7 @@ extend-exclude = ''' [tool.ruff] line-length = 100 exclude = [".git", "__pycache__", ".mypy_cache", ".pytest_cache", "migrations"] -select = [ +lint.select = [ "E", # pycodestyle errors "W", # pycodestyle warnings "F", # pyflakes @@ -66,7 +66,7 @@ select = [ "C", # flake8-comprehensions "B", # flake8-bugbear ] -ignore = [ +lint.ignore = [ "B904", "B006", "E501", # line too long, handled by black @@ -74,7 +74,7 @@ ignore = [ "C901", # too complex ] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401"] [tool.codespell]