pip/setup.cfg

109 lines
3.0 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,
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-05 22:48:50 +02:00
# TODO: Remove IOError from except (OSError, IOError) blocks in
# these files when Python 2 is removed.
# In Python 3, IOError have been merged into OSError
# https://github.com/PyCQA/flake8-bugbear/issues/110
src/pip/_internal/utils/filesystem.py: B014
src/pip/_internal/network/cache.py: B014
src/pip/_internal/utils/misc.py: B014
2020-06-17 17:53:30 +02:00
2017-06-14 08:14:47 +02:00
[mypy]
follow_imports = silent
ignore_missing_imports = True
disallow_untyped_defs = True
2019-11-12 19:08:48 +01:00
disallow_any_generics = True
2017-06-14 08:14:47 +02:00
[mypy-pip/_vendor/*]
follow_imports = skip
ignore_errors = True
[tool:pytest]
addopts = --ignore src/pip/_vendor --ignore tests/tests_cache -r aR
2020-05-21 05:57:46 +02:00
markers =
2020-05-21 16:58:43 +02:00
network: tests that need network
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
yaml: yaml based tests
2020-05-21 16:58:43 +02:00
fails_on_new_resolver: Does not yet work on the new resolver
[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 MYPY_CHECK_RUNNING
# Can be set to exclude e.g. `if PY2:` on Python 3
${PIP_CI_COVERAGE_EXCLUDES}
2015-10-02 02:26:59 +02:00
[bdist_wheel]
universal = 1
[metadata]
license_file = LICENSE.txt