forked from kobotoolbox/kpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
50 lines (47 loc) · 1.27 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
# Formatters are optional, this configuration attempts to make as many
# tools "just work" in a way compatible with kobo code standards
[tool.black]
# Do not enable `verbose = true` unless Black changes their behavior to respect
# `--quiet` on the command line properly
# verbose = true
line-length = 80
skip-string-normalization = true
[tool.isort]
profile = "black"
known_first_party = "kobo"
no_lines_before = ["LOCALFOLDER"]
[tool.ruff]
line-length = 80
[tool.ruff.format]
quote-style = "single" # Preserve is coming soon to ruff
[tool.ruff.lint]
# Enable ruff isort
extend-select = ["I"]
[tool.ruff.lint.isort]
known-first-party = ["kobo"]
[tool.pytest.ini_options]
testpaths = [
'kobo',
'kpi',
'hub',
]
env = [
'DJANGO_SETTINGS_MODULE=kobo.settings.testing',
]
addopts = [
'-m not performance',
]
markers = [
"performance: marks test for performance that may unexpectedly fail on slower platforms (not executed by default - select with '-m \"performance\"')",
]
# Types are not enforced but are a good practice
[tool.mypy]
# Exclude virtual environment projects that cause mypy to error
exclude = [
"src/django-digest",
"src/formpack",
"src/kobo-service-account",
"src/python-digest",
]
[tool.django-stubs]
django_settings_module = "kobo.settings"