-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
70 lines (61 loc) · 1.89 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
[project]
name = "polarion-requirements-inspector-service"
version = "0.0.0" # the version is controll by pipeline
description = "Service for python_requirements_inspector"
authors = [
{name = "SBB Polarion Team", email = "polarion-opensource@sbb.ch"},
]
license = "Apache License 2.0"
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"flask (>=3.1.0,<4.0.0)",
"gevent (>=24.11.1,<25.0.0)",
"unittest-xml-reporting (>=3.2.0,<4.0.0)",
"python-requirements-inspector @ https://github.com/SchweizerischeBundesbahnen/python-requirements-inspector/releases/download/4.0.0/python_requirements_inspector-4.0.0-py3-none-any.whl",
]
# Note that murmuhash (1.0.10) and cymem (2.0.8) are dependencies of python-requirements-inspector. The github action docker/build-push-action might fail with versions 1.0.11 and 2.0.10 respectively.
[tool.poetry]
packages = [{include = "app"}]
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.0"
ruff = "^0.9.0"
mypy = "^1.11.2"
[tool.poetry.group.test.dependencies]
tox = "^4.18.0"
coverage = "^7.6.4"
[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)
]
[tool.ruff.format]
line-ending = "lf"
[tool.mypy]
explicit_package_bases = true
disallow_untyped_defs = true
exclude = "tests/.*"