2019-09-24 12:32:51 +02:00
|
|
|
exclude: 'src/pip/_vendor/'
|
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-03-27 21:03:11 +02:00
|
|
|
rev: v4.4.0
|
2019-09-24 12:32:51 +02:00
|
|
|
hooks:
|
2019-09-25 06:00:23 +02:00
|
|
|
- id: check-builtin-literals
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-yaml
|
|
|
|
- id: debug-statements
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
exclude: WHEEL
|
|
|
|
- id: forbid-new-submodules
|
|
|
|
- id: trailing-whitespace
|
|
|
|
exclude: .patch
|
2019-09-24 12:32:51 +02:00
|
|
|
|
2020-09-23 21:06:02 +02:00
|
|
|
- repo: https://github.com/psf/black
|
2023-03-27 21:03:11 +02:00
|
|
|
rev: 23.1.0
|
2020-09-23 21:06:02 +02:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
|
2023-06-05 15:26:05 +02:00
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
# Ruff version.
|
|
|
|
rev: v0.0.270
|
2020-05-12 15:10:12 +02:00
|
|
|
hooks:
|
2023-06-05 15:26:05 +02:00
|
|
|
- id: ruff
|
2020-05-12 15:10:12 +02:00
|
|
|
|
2019-09-24 12:32:51 +02:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2022-07-18 08:33:12 +02:00
|
|
|
rev: v0.961
|
2019-09-24 12:32:51 +02:00
|
|
|
hooks:
|
2019-09-25 06:00:23 +02:00
|
|
|
- id: mypy
|
2021-08-22 06:04:11 +02:00
|
|
|
exclude: tests/data
|
2021-08-09 21:49:48 +02:00
|
|
|
args: ["--pretty", "--show-error-codes"]
|
|
|
|
additional_dependencies: [
|
|
|
|
'keyring==23.0.1',
|
2021-08-08 21:42:44 +02:00
|
|
|
'nox==2021.6.12',
|
2022-12-15 12:19:15 +01:00
|
|
|
'pytest',
|
2022-04-22 17:09:12 +02:00
|
|
|
'types-docutils==0.18.3',
|
|
|
|
'types-setuptools==57.4.14',
|
|
|
|
'types-freezegun==1.1.9',
|
|
|
|
'types-six==1.16.15',
|
2022-11-25 14:36:04 +01:00
|
|
|
'types-pyyaml==6.0.12.2',
|
2021-08-09 21:49:48 +02:00
|
|
|
]
|
2019-09-24 12:32:51 +02:00
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
2023-03-27 21:03:11 +02:00
|
|
|
rev: v1.10.0
|
2019-09-24 12:32:51 +02:00
|
|
|
hooks:
|
2019-09-25 06:00:23 +02:00
|
|
|
- id: python-no-log-warn
|
|
|
|
- id: python-no-eval
|
|
|
|
- id: rst-backticks
|
2020-04-26 17:10:25 +02:00
|
|
|
files: .*\.rst$
|
2019-09-25 06:00:23 +02:00
|
|
|
types: [file]
|
2020-04-26 17:10:25 +02:00
|
|
|
exclude: NEWS.rst # The errors flagged in NEWS.rst are old.
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: news-fragment-filenames
|
|
|
|
name: NEWS fragment
|
|
|
|
language: fail
|
|
|
|
entry: NEWS fragment files must be named *.(process|removal|feature|bugfix|vendor|doc|trivial).rst
|
|
|
|
exclude: ^news/(.gitignore|.*\.(process|removal|feature|bugfix|vendor|doc|trivial).rst)
|
|
|
|
files: ^news/
|
2021-01-24 15:39:51 +01:00
|
|
|
|
2022-10-07 13:07:07 +02:00
|
|
|
ci:
|
|
|
|
autofix_prs: false
|
|
|
|
autoupdate_commit_msg: 'pre-commit autoupdate'
|
|
|
|
autoupdate_schedule: monthly
|