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-05-17 17:25:06 +00:00
|
|
|
rev: v4.0.1
|
2020-08-14 16:12:24 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: check-case-conflict
|
|
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-yaml
|
2021-04-25 12:38:28 -04:00
|
|
|
- id: check-toml
|
|
|
|
|
- id: debug-statements
|
2020-08-14 16:12:24 -04:00
|
|
|
- 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-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
|
2021-03-22 14:35:46 -04:00
|
|
|
rev: 5.8.0
|
2021-01-05 17:54:08 -05:00
|
|
|
hooks:
|
|
|
|
|
- id: isort
|
|
|
|
|
|
2021-01-15 15:40:03 +01:00
|
|
|
- repo: https://github.com/psf/black
|
2021-06-12 11:40:33 -04:00
|
|
|
rev: 21.6b0
|
2021-01-15 15:40:03 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: black
|
|
|
|
|
|
2021-04-25 12:38:28 -04:00
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2021-04-26 15:24:46 -04:00
|
|
|
rev: v1.17.0
|
2021-04-25 12:38:28 -04:00
|
|
|
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
|
2021-05-10 17:15:16 -04:00
|
|
|
rev: 3.9.2
|
2021-01-02 19:04:47 -05:00
|
|
|
hooks:
|
|
|
|
|
- id: flake8
|
|
|
|
|
exclude: cibuildwheel/resources/
|
|
|
|
|
additional_dependencies: [flake8-bugbear]
|
2021-02-04 22:08:18 -05:00
|
|
|
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
|
|
|
|
- id: disallow-caps
|
|
|
|
|
name: Disallow improper capitalization
|
|
|
|
|
language: pygrep
|
|
|
|
|
entry: PyBind|Numpy|Cmake|Github
|
|
|
|
|
types:
|
|
|
|
|
- markdown
|