@@ -28,9 +28,10 @@ classifiers = [
28
28
" Programming Language :: Python :: Implementation :: PyPy" ,
29
29
]
30
30
dependencies = [
31
- " httpx[http2] ~= 0.24" ,
31
+ " httpx[http2] ~= 0.25; python_version >= '3.9'" ,
32
+ " httpx[http2] ~= 0.24; python_version < '3.9'" ,
32
33
" typing-extensions; python_version < '3.11'"
33
- ]
34
+ ]
34
35
35
36
[project .urls ]
36
37
Documentation = " https://github.com/stumpylog/gotenberg-client/#readme"
@@ -64,8 +65,8 @@ dependencies = [
64
65
[tool .hatch .envs .default .scripts ]
65
66
version = " python3 --version"
66
67
pip-list = " pip list"
67
- test = " pytest --pythonwarnings=all {args:tests}"
68
- test-cov = " coverage run -m pytest --pythonwarnings=all {args:tests}"
68
+ test = " pytest {args:tests}"
69
+ test-cov = " coverage run -m pytest {args:tests}"
69
70
cov-clear = " coverage erase"
70
71
cov-report = [
71
72
" - coverage combine" ,
@@ -83,10 +84,9 @@ cov = [
83
84
" cov-html"
84
85
]
85
86
86
- [[tool .hatch .envs .all .matrix ]]
87
- python = [" 3.8" , " 3.9" , " 3.10" , " 3.11" , " 3.12" ]
88
-
89
87
[tool .hatch .envs .pre-commit ]
88
+ template = " pre-commit"
89
+ detached = true
90
90
dependencies = [
91
91
" pre-commit>=3.5.0" ,
92
92
]
@@ -207,6 +207,11 @@ ban-relative-imports = "all"
207
207
# Tests can use magic values, assertions, and relative imports
208
208
"tests/**/*" = [" PLR2004" , " S101" , " TID252" ]
209
209
210
+ [tool .pytest .ini_options ]
211
+ minversion = " 7.0"
212
+ testpaths = [" tests" ]
213
+ addopts = " --pythonwarnings=all"
214
+
210
215
[tool .coverage .run ]
211
216
source_pkgs = [" gotenberg_client" , " tests" ]
212
217
branch = true
@@ -235,7 +240,7 @@ exclude = [
235
240
" tests/test_convert_chromium_url.py" ,
236
241
" tests/test_convert_chromium_markdown.py" ,
237
242
" tests/conftest.py" ,
238
- ]
243
+ ]
239
244
disallow_any_expr = true
240
245
disallow_untyped_defs = true
241
246
disallow_incomplete_defs = true
0 commit comments