Skip to content

Commit

Permalink
modify ruff configs to ignore migrations for linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham4401 committed Oct 4, 2024
1 parent d2ccfaf commit 8943a02
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/haztrak/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Haztrak application level settings.
"""

from .celery import app as celery_app

__all__ = ("celery_app",)
17 changes: 16 additions & 1 deletion server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,26 @@ repository = "https://github.com/USEPA/haztrak"

[tool.ruff]
line-length = 99
exclude = [
"**/migrations/*.py",
".venv",
".eggs",
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"__pypackages__",
"dist",
"node_modules",
"site-packages",
"venv",
]

[tool.ruff.lint]
select = ["F", "E", "W", "Q", "I001"]
ignore = ["F401"]
exclude = ["**/migrations/*.py"]

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "haztrak.settings.test"
Expand Down

0 comments on commit 8943a02

Please sign in to comment.