Skip to content

Commit

Permalink
Fix ling config (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickatnight authored Sep 14, 2024
1 parent fc8f242 commit e5ea9d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion {{ cookiecutter.project_slug }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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...."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ 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
# "I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
lint.ignore = [
"B904",
"B006",
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]

[tool.codespell]
Expand Down

0 comments on commit e5ea9d1

Please sign in to comment.