generated from ocadotechnology/codeforlife-template-backend
-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
39 lines (31 loc) · 890 Bytes
/
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
[tool.black]
line-length = 80
extend-exclude = ".*/migrations/.*py"
[tool.pytest.ini_options]
env = [
"DJANGO_SETTINGS_MODULE=settings",
"SERVICE_IS_ROOT=1",
"SERVICE_NAME=portal",
]
[tool.mypy]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
check_untyped_defs = true
disable_error_code = ["dict-item"]
mypy_path = "../codeforlife-package-python"
[tool.django-stubs]
django_settings_module = "settings"
[tool.pylint.main]
init-hook = "import os; os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')"
disable = ["fixme"]
[tool.pylint.format]
max-line-length = 80
[tool.pylint.MASTER]
ignore-paths = [".*/migrations/.*.py"]
load-plugins = "pylint_django"
django-settings-module = "settings"
[tool.isort]
profile = "black"
line_length = 80
skip_glob = ["**/migrations/*.py"]
[tool.coverage.run]
omit = ["*/test_*.py", "*/*_test.py", "main.py", "manage.py"]