-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (79 loc) · 2.35 KB
/
pyproject.toml
File metadata and controls
99 lines (79 loc) · 2.35 KB
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
98
99
[project]
name = "e3dc-cli"
dynamic = ["version"]
description = "Command-line tool to query E3/DC systems"
authors = [{ name = "Sebastian Waldvogel", email = "sebastian@waldvogels.de" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"pye3dc==0.10.0",
"tzlocal==5.3.1",
"jsonargparse==4.42.0",
"rich-argparse==1.7.2",
"pydantic==2.12.5",
]
[project.scripts]
e3dc-cli = "e3dc_cli.__main__:cli"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[dependency-groups]
lint = [
"ruff==0.15.8",
]
pytest = [
"pytest-cov==7.1.0",
"pytest-mock==3.15.1",
]
[project.urls]
Repository = "https://github.com/waldbaer/e3dc-cli"
# ---- Python PDM ------------------------------------------------------------------------------------------------------
[tool.pdm]
distribution = true
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
lint = "ruff check ."
format = "ruff format ."
tests = "pytest --cov-report term-missing --cov=e3dc_cli --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