-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (65 loc) · 1.67 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
[project]
name = "weasyprint-service"
version = "0.0.0" # the version is controll by the pipeline
description = "Service for https://github.com/Kozea/WeasyPrint"
authors = [
{name = "SBB Polarion Team", email = "[email protected]"},
]
license = "Apache License 2.0"
readme = "README.md"
requires-python=">=3.13"
dependencies = [
"flask (>=3.1.0,<4.0.0)",
"gevent (>=24.11.1,<25.0.0)",
"weasyprint (>=64.0,<65)"
]
[tool.poetry]
packages = [{include = "app"}]
requires-poetry = ">=2.0"
[tool.poetry.dependencies]
python = "^3.13"
[tool.poetry.group.dev.dependencies]
pre-commit = "4.1.0"
ruff = "0.9.7"
mypy = "1.15.0"
[tool.poetry.group.test.dependencies]
tox = "^4.18.0"
docker = "^7.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 240
fix = true
show-fixes = true
[tool.ruff.lint]
extend-select = [
# --- Recommended ---
"E", "W", # pycodestyle errors and warnings
"F", # Pyflakes
"I", # isort
"C4", # flake8-comprehensions
"C90", # mccabe
"B", # flake8-bugbear
"UP", # pyupgrade
"S", # flake8-bandit
"PL", # Pylint
"PTH", # flake8-pathlib
"TCH", # type-checking imports
"SIM", # flake8-simplify
"T20", # flake8-print
"ERA", # eradicate
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101", # No assert rule (bandit)
"PLR2004", # No magic values (pylint)
"F405", # undefined-local-with-import-star-usage (pyflakes)
"F403", # No import * (pyflakes)
]
[tool.ruff.format]
line-ending = "lf"
[tool.mypy]
explicit_package_bases = true
disallow_untyped_defs = true
exclude = "tests/.*"