-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
99 lines (87 loc) · 1.83 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#
# QualiCharge Dashboard package
#
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "qualicharge-dashboard"
version = "0.1.0"
[tool.setuptools]
packages = ["apps", "dashboard"]
# Third party packages configuration
[tool.coverage.run]
omit = [
"migrations/*",
"dashboard/asgi.py",
"dashboard/wsgi.py",
"dashboard/tests/*",
"apps/**/tests/*",
]
[tool.pytest.ini_options]
addopts = "-v --cov-report term-missing --cov=apps --cov=dashboard"
DJANGO_SETTINGS_MODULE = "dashboard.settings"
python_files = [
"test_*.py",
"tests.py",
]
testpaths = [
"tests",
"dasboard/tests",
"apps/**/tests",
]
[tool.ruff]
target-version = "py310"
# Exclude a variety of commonly ignored directories.
exclude = [
"migrations",
]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle error
"F", # Pyflakes
"I", # Isort
"ISC", # flake8-implicit-str-concat
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLR", # Pylint Refactor
"PLW", # Pylint Warning
"RUF100", # Ruff unused-noqa
"S", # flake8-bandit
"T20", # flake8-print
"W", # pycodestyle warning
]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = [
"S101", # use of assert
]
[tool.ruff.lint.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.mypy]
ignore_missing_imports = true
plugins = ["mypy_django_plugin.main"]
exclude = [
"migrations"
]
[[tool.mypy.overrides]]
module = [
"environ"
]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "dashboard.settings"
ignore_missing_model_attributes = true
[tool.djlint]
profile="django"
line_break_after_multiline_tag = true
max_blank_lines=1
indent=2
files=[
"templates",
"dashboard/",
"apps/",
]