The Python package installer https://pip.pypa.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

109 lines
3.0 KiB

  1. [isort]
  2. profile = black
  3. skip =
  4. ./build,
  5. .nox,
  6. .tox,
  7. .scratch,
  8. _vendor,
  9. data
  10. known_third_party =
  11. pip._vendor
  12. [flake8]
  13. max-line-length = 88
  14. exclude =
  15. ./build,
  16. .nox,
  17. .tox,
  18. .scratch,
  19. _vendor,
  20. data
  21. enable-extensions = G
  22. extend-ignore =
  23. G200, G202,
  24. # black adds spaces around ':'
  25. E203,
  26. per-file-ignores =
  27. # G: The plugin logging-format treats every .log and .error as logging.
  28. noxfile.py: G
  29. # B011: Do not call assert False since python -O removes these calls
  30. tests/*: B011
  31. # TODO: Remove IOError from except (OSError, IOError) blocks in
  32. # these files when Python 2 is removed.
  33. # In Python 3, IOError have been merged into OSError
  34. # https://github.com/PyCQA/flake8-bugbear/issues/110
  35. src/pip/_internal/utils/filesystem.py: B014
  36. src/pip/_internal/network/cache.py: B014
  37. src/pip/_internal/utils/misc.py: B014
  38. [mypy]
  39. follow_imports = silent
  40. ignore_missing_imports = True
  41. disallow_untyped_defs = True
  42. disallow_any_generics = True
  43. [mypy-pip/_vendor/*]
  44. follow_imports = skip
  45. ignore_errors = True
  46. [tool:pytest]
  47. addopts = --ignore src/pip/_vendor --ignore tests/tests_cache -r aR
  48. markers =
  49. network: tests that need network
  50. incompatible_with_test_venv
  51. incompatible_with_venv
  52. no_auto_tempdir_manager
  53. unit: unit tests
  54. integration: integration tests
  55. bzr: VCS: Bazaar
  56. svn: VCS: Subversion
  57. mercurial: VCS: Mercurial
  58. git: VCS: git
  59. yaml: yaml based tests
  60. fails_on_new_resolver: Does not yet work on the new resolver
  61. [coverage:run]
  62. branch = True
  63. # Do not gather coverage for vendored libraries.
  64. omit = */_vendor/*
  65. # Centralized absolute file prefix for coverage files.
  66. data_file = ${COVERAGE_OUTPUT_DIR}/.coverage
  67. # By default, each covered process will try to truncate and then write to
  68. # `data_file`, but with `parallel`, they will write to separate files suffixed
  69. # with hostname, pid, and a timestamp.
  70. parallel = True
  71. # If not set, then at the termination of each worker (when using pytest-xdist),
  72. # the following is traced: "Coverage.py warning: Module pip was previously
  73. # imported, but not measured (module-not-measured)"
  74. disable_warnings = module-not-measured
  75. [coverage:paths]
  76. # We intentionally use "source0" here because pytest-cov unconditionally sets
  77. # "source" after loading the config.
  78. source0 =
  79. # The primary source code path which other paths will be combined into.
  80. src/pip/
  81. # Unit test source directory e.g.
  82. # `.tox/coverage-py3/lib/pythonX.Y/site-packages/pip/...`
  83. */site-packages/pip/
  84. # Functional test virtual environment directories, which look like
  85. # `tmpdir/pip0/pip/src/pip/...`
  86. */pip/src/pip/
  87. [coverage:report]
  88. exclude_lines =
  89. # We must re-state the default because the `exclude_lines` option overrides
  90. # it.
  91. pragma: no cover
  92. # This excludes typing-specific code, which will be validated by mypy anyway.
  93. if MYPY_CHECK_RUNNING
  94. # Can be set to exclude e.g. `if PY2:` on Python 3
  95. ${PIP_CI_COVERAGE_EXCLUDES}
  96. [bdist_wheel]
  97. universal = 1
  98. [metadata]
  99. license_file = LICENSE.txt