generated from ocadotechnology/codeforlife-template-backend
-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
35 lines (27 loc) · 865 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
[tool.black]
line-length = 80
extend-exclude = ".*/migrations/.*py"
[tool.pytest.ini_options]
env = ["DJANGO_SETTINGS_MODULE=settings", "SERVICE_NAME=contributor"]
[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"]