From 4aa16e5201aa6e88892f32d17395fbdc0734a9e5 Mon Sep 17 00:00:00 2001 From: Jeff Triplett Date: Sun, 26 May 2024 09:22:47 -0500 Subject: [PATCH] :shirt: Lints --- pyproject.toml | 58 ++++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index eda8356..57b393e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = []