|
| 1 | +[tool.ruff] |
| 2 | +extend-exclude = ["migrations", "snapshots"] |
| 3 | + |
| 4 | +[tool.ruff.lint] |
| 5 | +# See https://docs.astral.sh/ruff/rules/ for documentation of rules |
| 6 | +extend-select = [ |
| 7 | + "B01", # Enable B01* part of flake8-bugbear (B) rules, e.g. B015 and B018 |
| 8 | + "C90", # Enable mccabe (C90) rules |
| 9 | + "E", # Enable pycodestyle error (E) rules |
| 10 | + "F", # Enable Pyflakes (F) rules |
| 11 | + "I", # Enable isort (I) rules |
| 12 | + "W", # Enable pycodestyle warning (W) rules |
| 13 | +] |
| 14 | + |
| 15 | +[tool.ruff.lint.isort] |
| 16 | +# isort options for ruff: |
| 17 | +# https://docs.astral.sh/ruff/settings/#lintisort |
| 18 | +order-by-type = false # Don't use type (i.e. case) to sort imports |
| 19 | + |
| 20 | +[tool.ruff.format] |
| 21 | +docstring-code-format = true # Format code in docstrings |
| 22 | + |
| 23 | +[tool.coverage.run] |
| 24 | +# Coverage run options: |
| 25 | +# https://coverage.readthedocs.io/en/latest/config.html#run |
| 26 | +branch = true |
| 27 | +omit = ["*migrations*", "*site-packages*", "*venv*"] |
| 28 | + |
| 29 | +[tool.pytest.ini_options] |
| 30 | +# pytest-django options: |
| 31 | +# https://pytest-django.readthedocs.io/en/latest/configuring_django.html |
| 32 | +DJANGO_SETTINGS_MODULE = "notification_service.settings" |
| 33 | + |
| 34 | +# pytest options: |
| 35 | +# https://docs.pytest.org/en/stable/reference/reference.html#configuration-options |
| 36 | +norecursedirs = ["node_modules", ".git", "venv*"] |
| 37 | +doctest_optionflags = [ |
| 38 | + "NORMALIZE_WHITESPACE", |
| 39 | + "IGNORE_EXCEPTION_DETAIL", |
| 40 | + "ALLOW_UNICODE", |
| 41 | +] |
0 commit comments