-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
112 lines (100 loc) · 2.97 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
[build-system]
requires = [
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs
"setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
]
build-backend = "setuptools.build_meta"
[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.9"
dynamic = ["version", "dependencies", "optional-dependencies"]
name = "enrich"
description = "enrich"
readme = "README.md"
authors = [{ "name" = "Sorin Sbarnea", "email" = "sorin.sbarnea@gmail.com" }]
maintainers = [
{ "name" = "Sorin Sbarnea", "email" = "sorin.sbarnea@gmail.com" }
]
license = { text = "MIT" }
classifiers = [
# https://pypi.org/classifiers/
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
keywords = ["console", "logging", "rich"]
[project.urls]
homepage = "https://github.com/pycontribs/enrich"
repository = "https://github.com/pycontribs/enrich"
changelog = "https://github.com/pycontribs/enrich/releases"
[tool.isort]
profile = "black"
known_first_party = "subprocess_tee"
[tool.mypy]
python_version = 3.9
color_output = true
error_summary = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
[tool.pytest]
addopts = "--doctest-modules --durations 10 --durations-min=3 --color=yes"
doctest_optionflags = ["ALLOW_UNICODE", "ELLIPSIS"]
norecursedirs = "dist doc build .tox .eggs"
filterwarnings = [
# treat warnings as errors unless we add them below
"error"
# ignore::UserWarning
]
[tool.ruff]
target-version = "py39"
# Same as Black.
line-length = 88
lint.ignore = [
"D203", # incompatible with D211
"D213", # incompatible with D212
"E501", # we use black
"ANN",
"FBT001",
"FBT002",
"FBT003",
"PGH",
]
lint.select = ["ALL"]
[tool.ruff.lint.per-file-ignores]
"test/**/*.py" = ["D", "ERA", "S"]
[tool.setuptools.dynamic]
dependencies = { file = [".config/requirements.in"] }
optional-dependencies.test = { file = [".config/requirements-test.in"] }
[tool.setuptools_scm]
local_scheme = "no-local-version"
tag_regex = "^(?P<prefix>v)?(?P<version>[0-9.]+)(?P<suffix>.*)?$"
write_to = "src/enrich/_version.py"
# To prevent accidental pick of mobile version tags such 'v6'
git_describe_command = [
"git",
"describe",
"--dirty",
"--tags",
"--long",
"--match",
"v*.*",
]