-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
118 lines (101 loc) · 2.14 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
[build-system]
requires = [
"setuptools>=61.2",
]
build-backend = "setuptools.build_meta"
[project]
name = "wxc"
description = "A CLI facility to inspect Python environments."
authors = [
{ name = "C.M.T. Robert" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.10"
dependencies = [
"rich>=10.13.0",
]
dynamic = ["version"]
[project.license]
text = "GPL-3.0"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.scripts]
wxc = "wxc.cli:main"
[project.urls]
Homepage = "https://github.com/neutrinoceros/wxc"
Changelog = "https://github.com/neutrinoceros/wxc/blob/main/CHANGELOG.md"
[tool.setuptools]
license-files = [
"LICENSE",
]
include-package-data = false
[tool.setuptools.dynamic]
version = {attr = "wxc.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.ruff.lint]
exclude = ["*__init__.py"]
ignore = ["E501"]
select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["wxc"]
[tool.coverage.paths]
source = [
"/home/runner/work/wxc",
"/Users/runner/work/wxc",
"D:\\a\\wxc",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
# a more strict default pragma
"\\# pragma: no cover\\b",
# allow defensive code
"^\\s*raise NotImplementedError\\b",
# typing-related code
"^if TYPE_CHECKING:",
": \\.\\.\\.(\\s*#.*)?$",
"^ +\\.\\.\\.$",
"-> ['\"]?NoReturn['\"]?:",
]
[tool.coverage.run]
source = ["src/wxc"]
include = [
"src/wxc",
"tests",
]
omit = [
"tests/data/*.py",
"src/wxc/__main__.py",
]
parallel = true
[tool.mypy]
python_version = "3.10"
show_error_codes = true
pretty = true
warn_return_any = true
warn_unused_configs = true
warn_unreachable = true
[tool.pytest]
filterwarnings = [
"error",
]