-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
124 lines (109 loc) · 2.49 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "idefix_cli"
version = "6.0.1"
description = "A command line utility belt for Idefix"
authors = [
{ name = "C.M.T. Robert" },
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Typing :: Typed",
]
requires-python = ">=3.10"
dependencies = [
"inifix>=5.1.0",
"packaging>=21.0",
"termcolor>=2.3.0",
"typing-extensions>=4.1.0;python_version < '3.11'",
]
[project.license]
text = "GPL-3.0"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.scripts]
idfx = "idefix_cli.__main__:idfx_entry_point"
baballe = "idefix_cli.__main__:baballe_entry_point"
[project.urls]
Homepage = "https://github.com/neutrinoceros/idefix_cli"
[dependency-groups]
test = [
"pytest-check>=2.1.2",
"pytest>=7.2.1",
]
covcheck = [
{include-group = "test"},
"coverage[toml]>=6.5.0 ; python_version < '3.11'",
"coverage>=6.5.0 ; python_version >= '3.11'",
]
typecheck = [
"mypy>=1.11.2",
"pyright>=1.1.390",
]
docs = [
"mkdocs>=1.5.3",
"mkdocs-include-markdown-plugin>=6.0.1",
"mkdocs-material>=9.4.2",
"mkdocstrings[python]>=0.23.0",
]
[tool.hatch.build.targets.sdist]
exclude = [
".*", # exclude dot files (.gitignore is still included)
"uv.lock",
"renovate.json",
]
[tool.ruff.lint]
exclude = ["*__init__.py"]
ignore = ["E501", "ISC001"]
select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"YTT", # flake8-2020
"ISC", # flake8-implicit-string-concatenation
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["idefix_cli"]
[tool.coverage.run]
branch = true
source = [
"src/idefix_cli",
"tests",
]
omit = [
# this test generates fake source files that are removed in teardown
"*test_broken_command_plugin*"
]
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_lines = [
# a more strict default pragma
"\\# pragma: no cover\\b",
# allow defensive code
"^\\s*raise NotImplementedError\\b",
": \\.\\.\\.(\\s*#.*)?$",
"^ +\\.\\.\\.$",
"-> ['\"]?NoReturn['\"]?:",
]
[tool.mypy]
python_version = '3.10'
strict = true
show_error_codes = true
show_error_context = true
warn_unused_ignores = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --doctest-modules"
filterwarnings = [
"error",
]