-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
158 lines (145 loc) · 4.37 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[tool.poetry]
name = "document-merge-service"
version = "7.3.1"
description = "Merge Document Template Service"
license = "GPL-3.0-or-later"
authors = ["Adfinis AG <[email protected]>"]
homepage = "https://github.com/adfinis/document-merge-service"
repository = "https://github.com/adfinis/document-merge-service"
documentation = "https://github.com/adfinis/document-merge-service/blob/main/README.md"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django :: 4",
"Framework :: Django :: 4.2",
]
include = ["CHANGELOG.md"]
exclude = ["document-merge-service/**/tests"]
[tool.poetry.dependencies]
python = ">=3.10.0,<3.13"
boto3 = { version = "^1.34.143", optional = true }
Babel = "^2.15.0"
Django = "~4.2.15"
django-cors-headers = "^4.4.0"
django-environ = "^0.11.2"
django-filter = "^24.2"
django-generic-api-permissions = "^0.4.6"
django-storages = {git = "https://github.com/adfinis-forks/django-storages", rev = "s3-head-object-sse-c"}
djangorestframework = "^3.15.2"
docx-mailmerge2 = "^0.8.0"
docxtpl = ">=0.17,<0.20"
Jinja2 = "^3.1.4"
mysqlclient = { version = "^2.2.4", optional = true }
pillow = ">=10.3,<12"
psycopg = { version = "^3.1.19", optional = true, extras = ["binary"] }
pymemcache = { version = "^4.0.0", optional = true }
python-dateutil = "^2.9.0"
python-memcached = "^1.59"
requests = "^2.32.3"
sentry-sdk = ">=2.7,<2.11"
tqdm = "^4.66.4"
urllib3 = "^2.2.1"
uWSGI = "^2.0.21"
xltpl = "~0.21"
[tool.poetry.group.dev.dependencies]
django-stubs = "5.1.1"
factory-boy = "3.3.1"
gitlint = "0.19.1"
mypy = "1.13.0"
pdbpp = "0.10.3"
psutil = "6.1.0"
pytest = "8.3.3"
pytest-cov = "6.0.0"
pytest-django = "4.9.0"
pytest-env = "1.1.5"
pytest-factoryboy = "2.7.0"
pytest-mock = "3.14.0"
pytest-randomly = "3.16.0"
python-semantic-release = "7.34.6"
requests-mock = "1.12.1"
ruff = "0.8.0"
syrupy = "4.8.0"
types-python-dateutil = "2.9.0.20241003"
types-requests = "2.32.0.20241016"
types-setuptools = "75.6.0.20241126"
types-toml = "0.10.8.20240310"
[tool.poetry.extras]
mysql = ["mysqlclient"]
pgsql = ["psycopg"]
databases = ["mysqlclient", "psycopg"]
memcache = ["pymemcache"]
s3 = ["boto3"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
exclude = ["migrations", "snapshots", ".venv"]
line-length = 88
[tool.ruff.lint]
select = ["C9", "D", "E", "F", "W", "I"]
ignore = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D202",
"E501",
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D407", # Missing dashed underline after section
"D406", # Section name should end with a newline
"D203", # one-blank-line-before-class (docstring)
]
[tool.ruff.lint.mccabe]
max-complexity = 11
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pytest.ini_options]
addopts = "--reuse-db --randomly-seed=1521188766 --randomly-dont-reorganize"
DJANGO_SETTINGS_MODULE = "document_merge_service.settings"
filterwarnings = [
"error::DeprecationWarning",
"error::PendingDeprecationWarning",
"ignore:invalid escape sequence", # xltpl
"ignore:pkg_resources is deprecated as an API:DeprecationWarning", # docx-mailmerge2
"ignore:'imghdr' is deprecated:DeprecationWarning", # jinja
]
env = [
"ADMINS=Test Example <[email protected]>,Test2 <[email protected]>",
"OIDC_USERINFO_ENDPOINT=mock://document-merge-service.github.com/openid/userinfo",
"OIDC_BEARER_TOKEN_REVALIDATION_TIME=60",
]
[tool.coverage.run]
source = ["."]
[tool.coverage.report]
fail_under = 100
exclude_lines = [
"pragma: no cover",
"pragma: todo cover",
"def __str__",
"def __unicode__",
"def __repr__",
]
omit = [
"*/migrations/*",
"*/apps.py",
"manage.py",
"setup.py",
"document_merge_service/settings_*.py",
"document_merge_service/wsgi.py",
"document_merge_service/document_merge_service_metadata.py",
]
show_missing = true
[tool.semantic_release]
version_source = "tag"
version_toml = ["pyproject.toml:tool.poetry.version"]