-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
73 lines (63 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
71
72
73
[tool.poetry]
name = "python-requirements-inspector"
version = "4.1.0"
description = ""
authors = [
"SBB Polarion Team <[email protected]>",
]
license = "Apache License 2.0"
readme = "README.md"
homepage = "https://github.com/SchweizerischeBundesbahnen/python-requirements-inspector"
repository = "https://github.com/SchweizerischeBundesbahnen/python-requirements-inspector"
[tool.poetry.dependencies]
python = "^3.12"
spacy = "^3.7"
spacy-language-detection = "^0.2.1"
de-core-news-md = {url = "https://github.com/explosion/spacy-models/releases/download/de_core_news_md-3.7.0/de_core_news_md-3.7.0-py3-none-any.whl"}
en-core-web-md = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.7.1/en_core_web_md-3.7.1-py3-none-any.whl"}
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.0.0"
ruff = "^0.8.0"
mypy = "^1.11.2"
[tool.poetry.group.test.dependencies]
tox = "^4.12.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
inspect-requirements = "python_requirements_inspector.main:run"
[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]
"python_requirements_inspector/main.py" = [
"T201" # No prints
]
"tests/*" = [
"S101" # No assert rule (bandit)
]
[tool.ruff.format]
line-ending = "lf"
[tool.mypy]
explicit_package_bases = true
disallow_untyped_defs = true
exclude = "tests/.*"