| # Note: don't use this config for your own repositories. Instead, see |
| # "Version control integration" in docs/integrations/source_version_control.md |
| exclude: ^(profiling/|tests/data/) |
| repos: |
| - repo: local |
| hooks: |
| - id: check-pre-commit-rev-in-example |
| name: Check pre-commit rev in example |
| language: python |
| entry: python -m scripts.check_pre_commit_rev_in_example |
| files: '(CHANGES|source_version_control|using_black_with_jupyter_notebooks)\.md$' |
| additional_dependencies: |
| - beautifulsoup4>=4.14.2 |
| - commonmark>=0.9.1 |
| - pyyaml>=6.0.1 |
| |
| - id: check-version-in-the-basics-example |
| name: Check black version in the basics example |
| language: python |
| entry: python -m scripts.check_version_in_basics_example |
| files: '(CHANGES|the_basics)\.md$' |
| additional_dependencies: |
| - beautifulsoup4>=4.14.2 |
| - commonmark>=0.9.1 |
| |
| - repo: https://github.com/pycqa/isort |
| rev: 8.0.1 |
| hooks: |
| - id: isort |
| |
| - repo: https://github.com/pycqa/flake8 |
| rev: 7.3.0 |
| hooks: |
| - id: flake8 |
| additional_dependencies: |
| - flake8-bugbear |
| - flake8-comprehensions |
| - flake8-simplify |
| exclude: ^src/blib2to3/ |
| |
| - repo: https://github.com/pre-commit/mirrors-mypy |
| rev: v1.20.2 |
| hooks: |
| - id: mypy |
| exclude: ^docs/conf.py$ |
| args: [] |
| additional_dependencies: |
| - click>=8.0.0 |
| - packaging>=22.0 |
| - platformdirs>=2 |
| - pytokens~=0.4.0 |
| - tomli>=1.1.0 |
| - uvloop>=0.15.2; sys_platform != 'win32' |
| - winloop>=0.5.0; sys_platform == 'win32' |
| |
| # blackd |
| - aiohttp>=3.10 |
| |
| # tests |
| - pytest>=7 |
| |
| # fuzz |
| - hypothesis |
| - hypothesmith |
| - types-atheris |
| |
| # diff-shades |
| - urllib3 |
| |
| # version check |
| - beautifulsoup4>=4.14.2 |
| - types-commonmark>=0.9.0 |
| - types-pyyaml>=6.0.0 |
| |
| - repo: https://github.com/rbubley/mirrors-prettier |
| rev: v3.8.3 |
| hooks: |
| - id: prettier |
| types_or: [markdown, yaml, json] |
| |
| - repo: https://github.com/pre-commit/pre-commit-hooks |
| rev: v6.0.0 |
| hooks: |
| - id: end-of-file-fixer |
| - id: trailing-whitespace |