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 =
|
2019-08-27 10:36:17 +02:00
|
|
|
./build,
|
2019-07-30 13:26:20 +02:00
|
|
|
.nox,
|
2018-06-25 13:30:40 +02:00
|
|
|
.tox,
|
|
|
|
.scratch,
|
|
|
|
_vendor,
|
|
|
|
data
|
2017-05-16 12:09:37 +02:00
|
|
|
known_third_party =
|
|
|
|
pip._vendor
|
2017-05-15 11:06:33 +02:00
|
|
|
|
2017-07-05 19:37:24 +02:00
|
|
|
[flake8]
|
2020-09-23 16:29:10 +02:00
|
|
|
max-line-length = 88
|
2018-06-25 13:30:40 +02:00
|
|
|
exclude =
|
2019-08-27 10:36:17 +02:00
|
|
|
./build,
|
2019-07-30 13:26:20 +02:00
|
|
|
.nox,
|
2018-06-25 13:30:40 +02:00
|
|
|
.tox,
|
|
|
|
.scratch,
|
|
|
|
_vendor,
|
|
|
|
data
|
2020-06-17 17:53:30 +02:00
|
|
|
enable-extensions = G
|
2020-09-24 13:35:53 +02:00
|
|
|
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,
|
2022-04-22 17:13:09 +02:00
|
|
|
# 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]
|
2022-07-22 10:51:19 +02:00
|
|
|
mypy_path = $MYPY_CONFIG_FILE_DIR/src
|
2017-06-14 08:14:47 +02:00
|
|
|
ignore_missing_imports = True
|
2019-09-28 20:12:49 +02:00
|
|
|
disallow_untyped_defs = True
|
2019-11-12 19:08:48 +01:00
|
|
|
disallow_any_generics = True
|
2020-12-24 00:42:48 +01:00
|
|
|
warn_unused_ignores = True
|
2022-08-13 03:48:15 +02:00
|
|
|
no_implicit_optional = True
|
2019-07-03 12:55:37 +02:00
|
|
|
|
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
|
|
|
|
|
2017-03-20 16:45:29 +01:00
|
|
|
[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
|
2021-08-13 12:08:57 +02:00
|
|
|
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
|
2020-12-15 10:18:12 +01:00
|
|
|
search: tests for 'pip search'
|
2013-08-20 12:39:56 +02:00
|
|
|
|
2019-12-01 01:13:06 +01:00
|
|
|
[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.
|
2021-01-02 00:16:16 +01:00
|
|
|
if TYPE_CHECKING
|
2019-12-01 01:13:06 +01:00
|
|
|
|
2017-10-20 10:10:34 +02:00
|
|
|
[metadata]
|
|
|
|
license_file = LICENSE.txt
|