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

100 lines
2.2 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-10-07 23:10:56 -04:00
rev: v2.29.0
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"]
# Autoremoves unused imports
- repo: https://github.com/hadialqattan/pycln
rev: v1.0.3
hooks:
- id: pycln
args: [--config=pyproject.toml]
2021-01-05 17:54:08 -05:00
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
2021-01-05 17:54:08 -05:00
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.9b0
hooks:
- id: black
- repo: https://github.com/asottile/setup-cfg-fmt
2021-10-07 23:10:56 -04:00
rev: v1.18.0
hooks:
- id: setup-cfg-fmt
2020-08-14 16:12:24 -04:00
- repo: https://github.com/pre-commit/mirrors-mypy
2021-10-07 23:10:56 -04:00
rev: v0.910-1
2020-08-14 16:12:24 -04:00
hooks:
- id: mypy
exclude: ^(bin|cibuildwheel/resources|docs)/.*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/
2021-07-15 22:44:39 -04:00
files: ^((bin|docs)/.*py|noxfile.py)$
2021-06-12 11:40:33 -04:00
args: ["--python-version=3.7", "--scripts-are-modules"]
additional_dependencies:
- packaging>=21.0
2021-06-12 11:40:33 -04:00
- 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
2021-07-14 13:45:04 -04:00
entry: PyBind|Numpy|Cmake|Github|PyTest
types:
- markdown
- id: update-readme-changelog
name: Update README changelog
language: python
entry: bin/update_readme_changelog.py
files: ^docs/changelog.md$
2021-07-14 13:45:04 -04:00
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args: ["-L", "sur"]