-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
87 lines (75 loc) · 1.87 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
[tool.poetry]
name = "hotenov_com"
version = "2024.6.10"
description = "My personal website hotenov.com"
authors = ["Artem Hotenov <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.12"
django = "^4.2.15"
Pillow = "^10.3.0"
django-modeltranslation = "^0.18.11"
django-configurations = "^2.5"
gunicorn = "^22.0.0"
psycopg = {extras = ["binary"], version = "^3.1.17"}
[tool.poetry.group.test.dependencies]
pytest-django = "^4.8.0"
pytest-xdist = "*"
coverage = {extras = ["toml"], version = "^6.5.0"}
pytest-cov = "*"
[tool.poetry.group.lint.dependencies]
flake8 = "^5.0.4"
flake8-bandit = "^4.1.1"
flake8-bugbear = "^22.12.6"
flake8-docstrings = "^1.7.0"
flake8-black = "^0.3.6"
darglint = "^1.8.1"
mypy = "^0.971"
[tool.poetry.group.format.dependencies]
isort = "^5.12.0"
yapf = "^0.32.0"
black = "^24.3.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
force_single_line = true
force_sort_within_sections = false
lexicographical = true
order_by_type = false
group_by_package = true
src_paths = ["src", "tests"]
lines_after_imports = 2
[tool.mypy]
strict = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
# pytest configuration
# Note: tool.pytest.ini_options will be replaced with tool.pytest in the future
[tool.pytest.ini_options]
# pytest-django config
DJANGO_SETTINGS_MODULE = "hotenov_com.settings"
DJANGO_CONFIGURATION = "TestSettings"
pythonpath = " . src"
python_files = "tests.py test_*.py *_tests.py"
markers = [
"custom_domain(domain): marks tests to use custom domain for site",
]
# coverage configuration
[tool.coverage.run]
branch = true
source = ["src"]
omit = [
"src/**/migrations/*",
]
[tool.coverage.paths]
source = [
"src",
".nox/*/site-packages",
]
[tool.coverage.report]
show_missing = true
fail_under = 100