forked from ocadotechnology/codeforlife-package-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
46 lines (37 loc) · 1.03 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
# https://python-semantic-release.readthedocs.io/en/latest/#setting-up-version-numbering
[tool.semantic_release]
version_variable = "codeforlife/version.py:__version__"
branch = "main"
upload_to_repository = false
upload_to_release = true
[tool.black]
line-length = 80
extend-exclude = ".*/migrations/.*py"
[tool.pytest.ini_options]
env = ["DJANGO_SETTINGS_MODULE=manage"]
[tool.mypy]
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
check_untyped_defs = true
[tool.django-stubs]
django_settings_module = "manage"
[tool.pylint.main]
init-hook = "import os; os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'manage')"
disable = ["fixme"]
[tool.pylint.format]
max-line-length = 80
[tool.pylint.MASTER]
ignore-paths = [".*/migrations/.*.py"]
load-plugins = "pylint_django"
[tool.isort]
profile = "black"
line_length = 80
skip_glob = ["**/migrations/*.py"]
[tool.coverage.run]
omit = [
"*/test_*.py",
"*/*_test.py",
"manage.py",
"setup.py",
"codeforlife/tests/*",
"codeforlife/user/management/commands/summarize_fixtures.py",
]