forked from pypa/pipenv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
283 lines (261 loc) · 6.91 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=67",
]
[project]
name = "pipenv"
description = "Python Development Workflow for Humans."
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "Pipenv maintainer team", email = "[email protected]" },
]
requires-python = ">=3.8"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = [
"version",
]
dependencies = [
"certifi",
"packaging>=22",
"setuptools>=67",
"virtualenv>=20.24.2",
]
optional-dependencies.dev = [
"beautifulsoup4",
"black==24.3.0",
"flake8<4,>=3.3",
"invoke",
"parver",
"sphinx",
"towncrier",
]
optional-dependencies.tests = [
"flaky",
"mock",
"pytest>=5",
"pytest-timeout",
"pytest-xdist",
]
urls.Documentation = "https://pipenv.pypa.io/en/latest/"
urls.Homepage = "https://github.com/pypa/pipenv"
urls.Source = "https://github.com/pypa/pipenv.git"
scripts.pipenv = "pipenv:cli"
scripts.pipenv-resolver = "pipenv.resolver:main"
[tool.setuptools.packages.find]
where = [ "." ]
exclude = [ "tests*", "tests.*", "tasks*", "tasks.*" ]
[tool.setuptools.package-data]
"*" = [ "LICENSE", "NOTICES" ]
"pipenv.patched.safety" = [ "VERSION", "safety-policy-template.yml" ]
"pipenv.patched.pip._vendor.certifi" = [ "*.pem" ]
"pipenv.patched.pip._vendor.requests" = [ "*.pem" ]
"pipenv.patched.pip._vendor.distlib" = [
"t32.exe",
"t64.exe",
"t64-arm.exe",
"w32.exe",
"w64.exe",
"w64-arm.exe",
]
"pipenv.vendor.ruamel" = [ "yaml" ]
[tool.setuptools.dynamic]
version = { attr = "pipenv.__version__" }
## TESTING AND DEVELOPER CONFIGURATION BELOW ##
[tool.black]
line-length = 90
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.github
| \.hg
| \.mypy_cache
| \.tox
| \.pyre_configuration
| \.venv
| _build
| buck-out
| build
| dist
| pipenv/vendor
| pipenv/patched
| tests/pypi
| tests/test_artifacts
| get-pipenv.py
| pyproject.toml
)
'''
[tool.ruff]
target-version = "py37"
line-length = 137
exclude = [
"get-pipenv.py",
"pipenv/patched/*",
"pipenv/vendor/*",
]
select = [
"ASYNC",
"B",
"C4",
"C90",
"E",
"F",
"FLY",
"G",
"I",
"ISC",
"PERF",
"PIE",
"PL",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
"B904",
"PIE790",
"PLR5501",
"PLW2901",
]
pylint.allow-magic-value-types = [ "int", "str" ]
pylint.max-args = 20
pylint.max-branches = 38
pylint.max-returns = 9
pylint.max-statements = 155
mccabe.max-complexity = 44
per-file-ignores."docs/conf.py" = [ "E402", "E501" ]
per-file-ignores."get-pipenv.py" = [ "E402" ]
per-file-ignores."pipenv/__init__.py" = [ "E401" ]
per-file-ignores."pipenv/cli/command.py" = [ "TID252" ]
per-file-ignores."pipenv/utils/internet.py" = [ "PLW0603" ]
per-file-ignores."pipenv/utils/resolver.py" = [ "B018" ]
per-file-ignores."tests/*" = [ "E501", "F401", "I", "PLC1901", "S101" ]
per-file-ignores."tests/integration/conftest.py" = [ "B003", "PIE800", "PLW0603" ]
per-file-ignores."tests/integration/test_pipenv.py" = [ "E741" ]
per-file-ignores."tests/integration/test_requirements.py" = [ "E741" ]
per-file-ignores."tests/unit/test_funktools.py" = [ "B015" ]
per-file-ignores."tests/unit/test_utils.py" = [ "F811" ]
[tool.pyproject-fmt]
# after how many column width split arrays/dicts into multiple lines, 1 will force always
column_width = 120
# how many spaces use for indentation
indent = 2
# if false will remove unnecessary trailing ``.0``'s from version specifiers
keep_full_version = true
# maximum Python version to use when generating version specifiers
max_supported_python = "3.13"
[tool.pytest.ini_options]
addopts = "-ra"
plugins = "xdist"
testpaths = [ "tests" ]
# Add vendor and patched in addition to the default list of ignored dirs
# Additionally, ignore tasks, news, test subdirectories and peeps directory
norecursedirs = [
".*",
"build",
"dist",
"CVS",
"_darcs",
"{arch}",
"*.egg",
"vendor",
"patched",
"news",
"tasks",
"docs",
"tests/test_artifacts",
"tests/pypi",
"peeps",
]
filterwarnings = [ ]
# These are not all the custom markers, but most of the ones with repeat uses
# `pipenv run pytest --markers` will list all markers including these
markers = [
"install: tests having to do with `pipenv install`",
"update: tests having to do with `pipenv update`",
"needs_internet: integration tests that require internet to pass",
"basic: basic pipenv tests grouping",
"dev: tests having to do with dev and dev packages",
"system: related or interacting with the os",
"utils: grouping of pipenv utility functions",
"cli: test grouping that relate to command line like `pipenv --flag args`",
"requirements: tests that save and alter pip requirements",
"run: tests that run or execute python through pipenv",
"script: grouping of tests that execute scripts",
"keep_outdated: when an activity is supposed to keep something out of date",
"lock: tests that interact with pipenv lock",
"markers: pipenv environment markers",
"vcs: tests integration with pipenv and vertsion control systems",
"project: tests with the project object",
"sync: related to `pipenv sync`",
"rrule: relating to rrules (as in recurring time)",
"tzoffset: timezone offset",
"gettz: tests with gettz (get timezone) from dateutil lib",
"tzstr: timezone string",
"extras",
"extended",
"ext: extra non-categorized tests",
]
[tool.coverage.run]
parallel = true
[tool.towncrier]
package = "pipenv"
filename = "CHANGELOG.md"
issue_format = "`#{issue} <https://github.com/pypa/pipenv/issues/{issue}>`_"
directory = "news/"
title_format = "{version} ({project_date})"
template = "news/towncrier_template.rst"
[[tool.towncrier.type]]
directory = "feature"
name = "Features & Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "behavior"
name = "Behavior Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "vendor"
name = "Vendored Libraries"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "trivial"
name = "Trivial Changes"
showcontent = false
[[tool.towncrier.type]]
directory = "removal"
name = "Removals and Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "process"
name = "Relates to dev process changes"
showcontent = true
[tool.mypy]
ignore_missing_imports = true
follow_imports = "skip"
html_report = "mypyhtml"
python_version = "3.7"
mypy_path = "typeshed/pyi:typeshed/imports"