2020-05-17 18:24:58 +02:00
|
|
|
repos:
|
2020-08-14 16:12:24 -04:00
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2021-01-02 14:32:55 -05:00
|
|
|
rev: v3.4.0
|
2020-08-14 16:12:24 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: check-case-conflict
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-yaml
|
|
|
|
|
- id: end-of-file-fixer
|
2020-12-12 14:47:14 +00:00
|
|
|
exclude: (cibuildwheel/resources/pinned_docker_images.cfg)|(.svg$)
|
2020-08-14 16:12:24 -04:00
|
|
|
- id: mixed-line-ending
|
|
|
|
|
- id: trailing-whitespace
|
|
|
|
|
|
2021-01-05 17:54:08 -05:00
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
|
|
|
rev: 5.7.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: isort
|
|
|
|
|
|
2021-01-15 15:40:03 +01:00
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
|
rev: 20.8b1
|
|
|
|
|
hooks:
|
|
|
|
|
- id: black
|
2021-02-04 22:02:53 -05:00
|
|
|
files: ^bin/update_pythons.py|setup.py$
|
2021-01-15 15:40:03 +01:00
|
|
|
|
2020-08-14 16:12:24 -04:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2021-01-31 17:14:15 -05:00
|
|
|
rev: v0.800
|
2020-08-14 16:12:24 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
2021-01-31 17:14:15 -05:00
|
|
|
exclude: ^(bin/|cibuildwheel/resources/).*py$
|
|
|
|
|
additional_dependencies: [packaging]
|
2021-02-02 16:30:50 -05:00
|
|
|
args: ["--python-version=3.6", "--ignore-missing-imports", "--scripts-are-modules"]
|
2021-01-31 17:14:15 -05:00
|
|
|
- id: mypy
|
|
|
|
|
name: mypy 3.7+ on bin/
|
|
|
|
|
files: ^bin/.*py$
|
|
|
|
|
additional_dependencies: [packaging]
|
|
|
|
|
args: ["--python-version=3.7", "--ignore-missing-imports", "--scripts-are-modules"]
|
2021-01-02 10:07:54 -05:00
|
|
|
|
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2021-02-01 16:37:03 +00:00
|
|
|
rev: v2.9.0
|
2021-01-02 10:07:54 -05:00
|
|
|
hooks:
|
|
|
|
|
- id: pyupgrade
|
|
|
|
|
args: ["--py36-plus"]
|
2021-01-02 19:04:47 -05:00
|
|
|
|
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
|
|
|
rev: 3.8.4
|
|
|
|
|
hooks:
|
|
|
|
|
- id: flake8
|
|
|
|
|
exclude: cibuildwheel/resources/
|
|
|
|
|
additional_dependencies: [flake8-bugbear]
|