-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (53 loc) · 1.18 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (53 loc) · 1.18 KB
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
[project]
name = "princetonafeez-portfolio"
version = "0.1.0"
description = "Production Django + HTMX portfolio for Princeton Afeez"
requires-python = ">=3.12"
[tool.black]
line-length = 100
target-version = ["py312"]
extend-exclude = """
/(
node_modules
| staticfiles
)/
"""
[tool.ruff]
line-length = 100
target-version = "py312"
exclude = [
".git",
".venv",
"venv",
"__pycache__",
"build",
"dist",
"node_modules",
"staticfiles",
"**/migrations/**",
]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "DJ"]
ignore = ["DJ001"]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings.test"
python_files = ["test_*.py", "*_test.py"]
testpaths = ["core/tests", "e2e", "pages/tests", "portfolio/tests"]
addopts = "-ra"
norecursedirs = [".git", ".venv", "venv", "node_modules", "staticfiles", "build", "dist"]
[tool.coverage.run]
source = ["core", "pages", "portfolio"]
omit = ["*/migrations/*", "*/tests/*"]
[tool.coverage.report]
precision = 1
show_missing = true
fail_under = 80
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.djlint]
profile = "django"
indent = 4
extension = "html"