Skip to content

Commit

Permalink
👕 Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed May 26, 2024
1 parent 23ae43a commit 4aa16e5
Showing 1 changed file with 26 additions and 32 deletions.
58 changes: 26 additions & 32 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,52 @@ target-version = ["py312"]

[tool.coverage.run]
omit = [
"*/admin.py",
"*/manage.py",
"*/migrations/*",
"*/tests/*",
"conftest.py",
"*/admin.py",
"*/manage.py",
"*/migrations/*",
"*/tests/*",
"conftest.py"
]

[tool.pytest.ini_options]
addopts = "--cov --nomigrations --reuse-db"
DJANGO_SETTINGS_MODULE = "config.settings"
addopts = "--cov --nomigrations --reuse-db"
norecursedirs = ".git* frontend requirements templates"
python_files = "test_*.py"

[tool.ruff]

# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".github",
".hg",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"migrations",
"node_modules",
"static",
".bzr",
".direnv",
".eggs",
".git",
".github",
".hg",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"migrations",
"node_modules",
"static"
]

# Same as Black.
line-length = 120

# Assume Python 3.12.
target-version = "py312"

[tool.ruff.lint]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F"]
unfixable = []

ignore = ["E501", "E741"] # temporary
per-file-ignores = {}
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F"]
ignore = ["E501", "E741"] # temporary

per-file-ignores = {}
unfixable = []

0 comments on commit 4aa16e5

Please sign in to comment.