-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
97 lines (77 loc) · 2.52 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[project]
name = "knx-ga-exporter"
dynamic = ["version"]
description = "Converter for spreadsheets to KNX ETS group address configurations in CSV format."
authors = [{ name = "Sebastian Waldvogel", email = "sebastian@waldvogels.de" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
# Force usage of openpyxl 3.0.10 due to https://foss.heptapod.net/openpyxl/openpyxl/-/issues/1963
"openpyxl==3.1.5",
"jsonargparse==4.36.0",
"rich-argparse==1.7.0",
]
[project.scripts]
knx-ga-exporter = "knx_ga_exporter.__main__:cli"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[dependency-groups]
lint = ["ruff>=0.8.3"]
pytest = [
"pytest-cov>=6.0.0",
]
docs = ["mkdocs>=1.6.1", "mkdocs-material>=9.5.49"]
[project.urls]
Repository = "https://github.com/waldbaer/knx-ga-exporter"
# ---- Python PDM ------------------------------------------------------------------------------------------------------
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
lint = "ruff check ."
format = "ruff format ."
docs = "mkdocs serve"
tests = "pytest --cov-report term-missing --cov=knx_ga_exporter --cov-fail-under=100 --verbose"
# ---- Ruff ------------------------------------------------------------------------------------------------------------
[tool.ruff]
include = ["**/*.py", "**/*.pyi", "**/pyproject.toml"]
line-length = 120
[tool.ruff.lint]
select = [
"ARG",
"ANN", # Warnings for missing type annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # Missing docstrings (autodoc)
"DOC", # pydoclint
"E", # pycodestyle - Error
"F", # Pyflakes
"I", # isort
"W", # pycodestyle - Warning
"UP", # pyupgrade
#"PL", # Pylint
]
extend-select = ["DOC"]
preview = true
ignore = ["UP006", "UP035"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["PLC2701"]
[tool.ruff.lint.pydocstyle]
convention = "google"
# ---- pylint ----------------------------------------------------------------------------------------------------------
[tool.pylint]
load-plugins = ["pylint.extensions.docparams"]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.main]
ignore-paths = [".venv", ".git", "__pypackages__", "tests/_temp", "tests"]
accept-no-param-doc = "no"
accept-no-raise-doc = "no"
accept-no-yields-doc = "no"
default-docstring-type = "google"
# ---- mypy ------------------------------------------------------------------------------------------------------------
[tool.mypy]
strict = true