1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/setup.cfg

115 lines
3.1 KiB
INI
Raw Normal View History

2017-05-15 11:06:33 +02:00
[isort]
2020-09-23 16:27:09 +02:00
profile = black
2017-05-15 11:06:33 +02:00
skip =
./build,
2019-07-30 13:26:20 +02:00
.nox,
.tox,
.scratch,
_vendor,
data
known_third_party =
pip._vendor
2017-05-15 11:06:33 +02:00
[flake8]
2020-09-23 16:29:10 +02:00
max-line-length = 88
exclude =
./build,
2019-07-30 13:26:20 +02:00
.nox,
.tox,
.scratch,
_vendor,
data
2020-06-17 17:53:30 +02:00
enable-extensions = G
extend-ignore =
2020-06-17 17:53:30 +02:00
G200, G202,
2020-09-23 16:29:10 +02:00
# black adds spaces around ':'
E203,
# using a cache
B019,
# reassigning variables in a loop
B020,
2020-06-04 23:10:49 +02:00
per-file-ignores =
2020-06-17 17:53:30 +02:00
# G: The plugin logging-format treats every .log and .error as logging.
noxfile.py: G
2020-06-04 23:10:49 +02:00
# B011: Do not call assert False since python -O removes these calls
tests/*: B011
2020-06-17 17:53:30 +02:00
2017-06-14 08:14:47 +02:00
[mypy]
mypy_path = $MYPY_CONFIG_FILE_DIR/src
2017-06-14 08:14:47 +02:00
ignore_missing_imports = True
disallow_untyped_defs = True
2019-11-12 19:08:48 +01:00
disallow_any_generics = True
warn_unused_ignores = True
2022-08-13 03:48:15 +02:00
no_implicit_optional = True
2021-03-10 04:53:19 +01:00
[mypy-pip._vendor.*]
2017-06-14 08:14:47 +02:00
ignore_errors = True
2021-03-10 04:53:19 +01:00
# These vendored libraries use runtime magic to populate things and don't sit
# well with static typing out of the box. Eventually we should provide correct
# typing information for their public interface and remove these configs.
[mypy-pip._vendor.colorama]
follow_imports = skip
[mypy-pip._vendor.pkg_resources]
follow_imports = skip
[mypy-pip._vendor.progress.*]
follow_imports = skip
[mypy-pip._vendor.requests.*]
follow_imports = skip
[tool:pytest]
2021-07-04 15:14:22 +02:00
addopts = --ignore src/pip/_vendor --ignore tests/tests_cache -r aR --color=yes
2021-09-30 09:20:13 +02:00
xfail_strict = True
2020-05-21 05:57:46 +02:00
markers =
2020-05-21 16:58:43 +02:00
network: tests that need network
incompatible_with_sysconfig
2020-05-21 05:57:46 +02:00
incompatible_with_test_venv
incompatible_with_venv
no_auto_tempdir_manager
unit: unit tests
integration: integration tests
bzr: VCS: Bazaar
svn: VCS: Subversion
mercurial: VCS: Mercurial
git: VCS: git
search: tests for 'pip search'
[coverage:run]
branch = True
# Do not gather coverage for vendored libraries.
omit = */_vendor/*
# Centralized absolute file prefix for coverage files.
data_file = ${COVERAGE_OUTPUT_DIR}/.coverage
# By default, each covered process will try to truncate and then write to
# `data_file`, but with `parallel`, they will write to separate files suffixed
# with hostname, pid, and a timestamp.
parallel = True
# If not set, then at the termination of each worker (when using pytest-xdist),
# the following is traced: "Coverage.py warning: Module pip was previously
# imported, but not measured (module-not-measured)"
disable_warnings = module-not-measured
[coverage:paths]
# We intentionally use "source0" here because pytest-cov unconditionally sets
# "source" after loading the config.
source0 =
# The primary source code path which other paths will be combined into.
src/pip/
# Unit test source directory e.g.
# `.tox/coverage-py3/lib/pythonX.Y/site-packages/pip/...`
*/site-packages/pip/
# Functional test virtual environment directories, which look like
# `tmpdir/pip0/pip/src/pip/...`
*/pip/src/pip/
[coverage:report]
exclude_lines =
# We must re-state the default because the `exclude_lines` option overrides
# it.
pragma: no cover
# This excludes typing-specific code, which will be validated by mypy anyway.
if TYPE_CHECKING
[metadata]
license_file = LICENSE.txt