Files
cibuildwheel/.pre-commit-config.yaml
T

83 lines
1.8 KiB
YAML
Raw Normal View History

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
rev: v4.0.1
2020-08-14 16:12:24 -04:00
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: check-toml
- id: debug-statements
2020-08-14 16:12:24 -04:00
- id: end-of-file-fixer
exclude: (cibuildwheel/resources/pinned_docker_images.cfg)|(.svg$)
2020-08-14 16:12:24 -04:00
- id: mixed-line-ending
- id: trailing-whitespace
2021-05-31 13:49:46 -04:00
- repo: https://github.com/asottile/pyupgrade
2021-06-12 11:40:33 -04:00
rev: v2.19.4
2021-05-31 13:49:46 -04:00
hooks:
- id: pyupgrade
name: PyUpgrade 3.6+
args: ["--py36-plus"]
exclude: ^bin/
- id: pyupgrade
name: PyUpgrade 3.7+ on bin
exclude: ^(cibuildwheel|unit_test|test)/
args: ["--py37-plus"]
2021-01-05 17:54:08 -05:00
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
2021-01-05 17:54:08 -05:00
hooks:
- id: isort
- repo: https://github.com/psf/black
2021-06-12 11:40:33 -04:00
rev: 21.6b0
hooks:
- id: black
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
hooks:
- id: setup-cfg-fmt
stages: [manual]
2020-08-14 16:12:24 -04:00
- repo: https://github.com/pre-commit/mirrors-mypy
2021-06-12 11:40:33 -04:00
rev: v0.902
2020-08-14 16:12:24 -04:00
hooks:
- id: mypy
2021-01-31 17:14:15 -05:00
exclude: ^(bin/|cibuildwheel/resources/).*py$
2021-06-12 11:40:33 -04:00
args: ["--python-version=3.6", "--scripts-are-modules"]
additional_dependencies:
- packaging
- types-jinja2
- types-certifi
- types-toml
2021-01-31 17:14:15 -05:00
- id: mypy
name: mypy 3.7+ on bin/
files: ^bin/.*py$
2021-06-12 11:40:33 -04:00
args: ["--python-version=3.7", "--scripts-are-modules"]
additional_dependencies:
- packaging
- rich
- types-jinja2
- types-pyyaml
- types-click
- types-requests
- types-toml
2021-01-02 10:07:54 -05:00
2021-04-05 16:44:43 +00:00
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
2021-01-02 19:04:47 -05:00
hooks:
- id: flake8
exclude: cibuildwheel/resources/
additional_dependencies: [flake8-bugbear]
- repo: local
hooks:
- id: disallow-caps
name: Disallow improper capitalization
language: pygrep
entry: PyBind|Numpy|Cmake|Github
types:
- markdown