1default_language_version:
2  python: "3.10"
3
4repos:
5  - repo: https://github.com/codespell-project/codespell
6    rev: v2.2.5
7    hooks:
8      - id: codespell
9        args:
10          - --ignore-words-list=wronly,afile
11  - repo: https://github.com/psf/black
12    rev: 23.7.0
13    hooks:
14      - id: black
15        args: [ --safe, --quiet ]
16  - repo: https://github.com/asottile/blacken-docs
17    rev: 1.16.0
18    hooks:
19      - id: blacken-docs
20        additional_dependencies: [ black==22.12.0 ]
21  - repo: https://github.com/pre-commit/pre-commit-hooks
22    rev: v4.4.0
23    hooks:
24      - id: trailing-whitespace
25      - id: end-of-file-fixer
26      - id: fix-encoding-pragma
27        args: [ --remove ]
28      - id: check-yaml
29      - id: debug-statements
30        language_version: python3
31  - repo: https://github.com/PyCQA/autoflake
32    rev: v2.2.0
33    hooks:
34      - id: autoflake
35        name: autoflake
36        args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"]
37        language: python
38        files: \.py$
39  - repo: https://github.com/PyCQA/flake8
40    rev: 6.1.0
41    hooks:
42      - id: flake8
43        language_version: python3
44        additional_dependencies:
45          - flake8-bugbear
46        args: ["--extend-ignore=E203", "--max-line-length=88"]
47  - repo: https://github.com/pre-commit/mirrors-mypy
48    rev: v1.5.1
49    hooks:
50      - id: mypy
51        exclude: (docs|pyfakefs/tests)
52