-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
68 lines (58 loc) · 1.68 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
[tool.poetry]
name = "polarion-requirements-inspector-service"
version = "0.0.0" # the version is controll by pipeline
description = "Service for python_requirements_inspector"
authors = [
"SBB Polarion Team <[email protected]>",
]
license = "Apache License 2.0"
readme = "README.md"
packages = [{include = "app"}]
[tool.poetry.dependencies]
python = "^3.12" # This service does not run with 3.13 (failing build backend)
Flask = "^3.0.3"
gevent = "^24.2.1"
python-requirements-inspector = {url = "https://github.com/SchweizerischeBundesbahnen/python-requirements-inspector/releases/download/4.0.0/python_requirements_inspector-4.0.0-py3-none-any.whl"}
unittest-xml-reporting = "^3.2.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.0"
ruff = "^0.7.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/.*"