| 1 |
# Note: don't use this config for your own repositories. Instead, see |
| 2 |
# "Version control integration" in docs/integrations/source_version_control.md |
| 3 |
exclude: ^(profiling/|tests/data/) |
| 4 |
repos: |
| 5 |
- repo: local |
| 6 |
hooks: |
| 7 |
- id: check-pre-commit-rev-in-example |
| 8 |
name: Check pre-commit rev in example |
| 9 |
language: python |
| 10 |
entry: python -m scripts.check_pre_commit_rev_in_example |
| 11 |
files: '(CHANGES|source_version_control|using_black_with_jupyter_notebooks)\.md$' |
| 12 |
additional_dependencies: |
| 13 |
- beautifulsoup4>=4.14.2 |
| 14 |
- commonmark>=0.9.1 |
| 15 |
- pyyaml>=6.0.1 |
| 16 |
|
| 17 |
- id: check-version-in-the-basics-example |
| 18 |
name: Check black version in the basics example |
| 19 |
language: python |
| 20 |
entry: python -m scripts.check_version_in_basics_example |
| 21 |
files: '(CHANGES|the_basics)\.md$' |
| 22 |
additional_dependencies: |
| 23 |
- beautifulsoup4>=4.14.2 |
| 24 |
- commonmark>=0.9.1 |
| 25 |
|
| 26 |
- repo: https://github.com/pycqa/isort |
| 27 |
rev: 8.0.1 |
| 28 |
hooks: |
| 29 |
- id: isort |
| 30 |
|
| 31 |
- repo: https://github.com/pycqa/flake8 |
| 32 |
rev: 7.3.0 |
| 33 |
hooks: |
| 34 |
- id: flake8 |
| 35 |
additional_dependencies: |
| 36 |
- flake8-bugbear |
| 37 |
- flake8-comprehensions |
| 38 |
- flake8-simplify |
| 39 |
exclude: ^src/blib2to3/ |
| 40 |
|
| 41 |
- repo: https://github.com/pre-commit/mirrors-mypy |
| 42 |
rev: v1.20.2 |
| 43 |
hooks: |
| 44 |
- id: mypy |
| 45 |
exclude: ^docs/conf.py$ |
| 46 |
args: [] |
| 47 |
additional_dependencies: |
| 48 |
- click>=8.0.0 |
| 49 |
- packaging>=22.0 |
| 50 |
- platformdirs>=2 |
| 51 |
- pytokens~=0.4.0 |
| 52 |
- tomli>=1.1.0 |
| 53 |
- uvloop>=0.15.2; sys_platform != 'win32' |
| 54 |
- winloop>=0.5.0; sys_platform == 'win32' |
| 55 |
|
| 56 |
# blackd |
| 57 |
- aiohttp>=3.10 |
| 58 |
|
| 59 |
# tests |
| 60 |
- pytest>=7 |
| 61 |
|
| 62 |
# fuzz |
| 63 |
- hypothesis |
| 64 |
- hypothesmith |
| 65 |
- types-atheris |
| 66 |
|
| 67 |
# diff-shades |
| 68 |
- urllib3 |
| 69 |
|
| 70 |
# version check |
| 71 |
- beautifulsoup4>=4.14.2 |
| 72 |
- types-commonmark>=0.9.0 |
| 73 |
- types-pyyaml>=6.0.0 |
| 74 |
|
| 75 |
- repo: https://github.com/rbubley/mirrors-prettier |
| 76 |
rev: v3.8.3 |
| 77 |
hooks: |
| 78 |
- id: prettier |
| 79 |
types_or: [markdown, yaml, json] |
| 80 |
|
| 81 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 82 |
rev: v6.0.0 |
| 83 |
hooks: |
| 84 |
- id: end-of-file-fixer |
| 85 |
- id: trailing-whitespace |