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

129 lines
2.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.2.0
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
rev: v2.32.1
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.3.3
hooks:
- id: pycln
2022-03-29 16:58:32 -04:00
args: [--all]
stages: [manual]
2021-01-05 17:54:08 -05:00
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
2021-01-05 17:54:08 -05:00
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
hooks:
- id: setup-cfg-fmt
2020-08-14 16:12:24 -04:00
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.960
2020-08-14 16:12:24 -04:00
hooks:
- id: mypy
name: mypy 3.6 on cibuildwheel/
exclude: ^(bin|cibuildwheel/resources|docs)/.*py$
args: ["--python-version=3.6"]
additional_dependencies: &mypy-dependencies
- nox
- packaging>=21.0
- pygithub
- rich
2021-10-15 11:30:16 -04:00
- tomli
- types-certifi
- types-click
2021-09-19 00:19:28 -04:00
- types-dataclasses
- types-jinja2
- types-pyyaml
- types-requests
- bracex
- dataclasses
2021-01-31 17:14:15 -05:00
- id: mypy
name: mypy 3.7+ on bin/
files: ^((bin|docs)/.*py)$
args: ["--python-version=3.7"]
additional_dependencies: *mypy-dependencies
- id: mypy
name: mypy 3.10
args: ["--python-version=3.10"]
additional_dependencies: *mypy-dependencies
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
- id: yesqa
additional_dependencies: &flake8-dependencies
- flake8-bugbear
2021-01-02 10:07:54 -05:00
2021-04-05 16:44:43 +00:00
- repo: https://github.com/PyCQA/flake8
2021-10-11 17:49:31 +00:00
rev: 4.0.1
2021-01-02 19:04:47 -05:00
hooks:
- id: flake8
exclude: cibuildwheel/resources/
additional_dependencies: *flake8-dependencies
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
stages: [manual]
- id: python-no-log-warn
- id: python-no-eval
- id: python-use-type-annotations
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
hooks:
- id: shellcheck
- 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"]