Skip to content

Commit 13f6150

Browse files
committed
Move pytest config to pyproject.toml
1 parent 101c579 commit 13f6150

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,24 @@ follow_imports = "skip"
240240
[[tool.mypy.overrides]]
241241
module = "pip._vendor.requests.*"
242242
follow_imports = "skip"
243+
244+
######################################################################################
245+
# pytest
246+
#
247+
248+
[tool.pytest.ini_options]
249+
addopts = "--ignore src/pip/_vendor --ignore tests/tests_cache -r aR --color=yes"
250+
xfail_strict = true
251+
markers = [
252+
"network: tests that need network",
253+
"incompatible_with_sysconfig",
254+
"incompatible_with_venv",
255+
"no_auto_tempdir_manager",
256+
"unit: unit tests",
257+
"integration: integration tests",
258+
"bzr: VCS: Bazaar",
259+
"svn: VCS: Subversion",
260+
"mercurial: VCS: Mercurial",
261+
"git: VCS: git",
262+
"search: tests for 'pip search'",
263+
]

setup.cfg

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
[tool:pytest]
2-
addopts = --ignore src/pip/_vendor --ignore tests/tests_cache -r aR --color=yes
3-
xfail_strict = True
4-
markers =
5-
network: tests that need network
6-
incompatible_with_sysconfig
7-
incompatible_with_venv
8-
no_auto_tempdir_manager
9-
unit: unit tests
10-
integration: integration tests
11-
bzr: VCS: Bazaar
12-
svn: VCS: Subversion
13-
mercurial: VCS: Mercurial
14-
git: VCS: git
15-
search: tests for 'pip search'
16-
171
[coverage:run]
182
branch = True
193
# Do not gather coverage for vendored libraries.

0 commit comments

Comments
 (0)