-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (114 loc) · 3.29 KB
/
pyproject.toml
File metadata and controls
129 lines (114 loc) · 3.29 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
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
125
126
127
128
129
[build-system]
requires = [
"setuptools >= 46.4.0",
"versioningit",
]
build-backend = "setuptools.build_meta"
[project]
name = "con-duct"
description = "A helper to run a command, capture stdout/stderr and details about running"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
license = "MIT"
authors = [
{ name = "Austin Macdonald", email = "austin@dartmouth.edu" },
]
keywords = [
"command-line",
"cpu",
"memory",
"metrics",
"output-capture",
"provenance",
"time",
"usage",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Topic :: System :: Systems Administration",
"Operating System :: Unix",
"Operating System :: MacOS",
]
# Version is managed by versioningit (see [tool.versioningit.*])
dynamic = ["version"]
[project.optional-dependencies]
all = [
"matplotlib>=3.5", # first supported version for Python 3.10
"PyYAML>=6.0", # first version with Python 3.10 wheels
"pyout>=0.8", # 0.7 has jsonschema incompatibility
# Pin rpds-py to support PyPy 3.10 - https://github.com/con/duct/issues/330
"rpds-py<0.28.0; implementation_name == 'pypy'",
"python-dotenv>=0.19", # first version with Python 3.10 support
]
[project.urls]
source = "https://github.com/con/duct/"
issues = "https://github.com/con/duct/issues"
[project.scripts]
duct = "con_duct.cli:duct_entrypoint"
con-duct = "con_duct.cli:main"
[tool.versioningit.write]
file = "src/con_duct/_version.py"
[tool.pytest.ini_options]
addopts = "--cov=con_duct --no-cov-on-fail"
filterwarnings = [
"error",
# matplotlib 3.5 uses deprecated pyparsing API (enablePackrat -> enable_packrat)
"ignore:'enablePackrat' deprecated:DeprecationWarning:matplotlib._mathtext",
]
markers = [
"flaky: mark a test as being unreliable",
]
norecursedirs = ["test/data"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.mypy]
allow_incomplete_defs = false
allow_untyped_defs = false
ignore_missing_imports = false
# <https://github.com/python/mypy/issues/7773>:
no_implicit_optional = true
implicit_reexport = false
local_partial_types = true
pretty = true
show_error_codes = true
show_traceback = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
[tool.isort]
atomic = true
force_sort_within_sections = true
honor_noqa = true
lines_between_sections = 0
profile = "black"
reverse_relative = true
sort_relative_in_force_sorted_sections = true
src_paths = ["src"]
[tool.coverage.run]
branch = true
parallel = true
[tool.coverage.paths]
source = [
"src",
".tox/**/site-packages",
]
[tool.coverage.report]
precision = 2
show_missing = true