-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
57 lines (50 loc) · 1.82 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[project]
name = "kukkuu"
version = "3.10.0"
requires-python = ">=3.11"
[tool.ruff]
# While `django-auditlog-extra` is installed directly from Github (instead of Pypi),
# it needs to be excluded, because otherwise CI-environment acts differently with the
# src -python path and it will fail while linting the code.
extend-exclude = ["migrations", "snapshots", "django-auditlog-extra"]
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/ for documentation of rules
extend-select = [
"C90", # Enable mccabe (C90) rules
"I", # Enable isort (I) rules
"E", # Enable pycodestyle error (E) rules
"W", # Enable pycodestyle warning (W) rules
]
# Ignore conflicting lint rules:
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
#
# If left enabled, these could cause conflicts between the linter
# (i.e. "ruff check --fix") and formatter (i.e. "ruff format").
ignore = [
"E111", # "Indentation is not a multiple of four"
"E114", # "Indentation is not a multiple of four (comment)"
"E117", # "Over-indented"
]
[tool.ruff.lint.isort]
# isort options for ruff:
# https://docs.astral.sh/ruff/settings/#lintisort
known-first-party = ["kukkuu"]
[tool.ruff.format]
docstring-code-format = true # Format code in docstrings
[tool.coverage.run]
# Coverage run options:
# https://coverage.readthedocs.io/en/latest/config.html#run
branch = true
omit = ["*migrations*", "*site-packages*", "*venv*"]
[tool.pytest.ini_options]
# pytest-django options:
# https://pytest-django.readthedocs.io/en/latest/configuring_django.html
DJANGO_SETTINGS_MODULE = "kukkuu.settings"
# pytest options:
# https://docs.pytest.org/en/stable/reference/reference.html#configuration-options
norecursedirs = ["node_modules", ".git", "venv*"]
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"ALLOW_UNICODE",
]