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

85 lines
2.0 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
2022-11-28 21:18:01 +00:00
rev: v4.4.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
- repo: https://github.com/psf/black
2023-04-03 23:10:41 +00:00
rev: 23.3.0
hooks:
- id: black
2023-01-30 15:53:44 -05:00
- repo: https://github.com/charliermarsh/ruff-pre-commit
2023-05-22 21:55:10 +00:00
rev: v0.0.269
2023-01-30 15:53:44 -05:00
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
2023-01-30 15:53:44 -05:00
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
2022-10-10 14:44:38 -04:00
args: [--include-version-classifiers, --max-py-version=3.11]
2020-08-14 16:12:24 -04:00
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
2020-08-14 16:12:24 -04:00
hooks:
- id: mypy
name: mypy 3.7 on cibuildwheel/
exclude: ^cibuildwheel/resources/.*py$
args: ["--python-version=3.7"]
additional_dependencies: &mypy-dependencies
- nox
- packaging~=21.0
- pygithub
- rich
2021-10-15 11:30:16 -04:00
- tomli
2022-06-27 23:40:41 -04:00
- tomli_w
- types-certifi
- types-click
- types-jinja2
- types-pyyaml
- types-requests
- bracex
- id: mypy
2023-04-18 06:06:18 -07:00
name: mypy 3.11
2022-11-23 19:03:57 +00:00
exclude: ^cibuildwheel/resources/.*py$
2023-04-18 06:06:18 -07:00
args: ["--python-version=3.11"]
additional_dependencies: *mypy-dependencies
- repo: https://github.com/shellcheck-py/shellcheck-py
2022-12-19 20:30:39 +00:00
rev: v0.9.0.2
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
2022-08-22 09:01:20 -04:00
exclude: ^docs/working-examples\.md$ # Autogenerated
- 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.2.4
2021-07-14 13:45:04 -04:00
hooks:
- id: codespell
args: ["-L", "sur"]
2022-08-22 09:01:20 -04:00
exclude: ^docs/working-examples\.md$ # Autogenerated