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

103 lines
2.9 KiB
YAML
Raw Normal View History

ci:
autoupdate_schedule: monthly
exclude: "^cibuildwheel/resources/ios-support/(?!make_cross_venv\\.py)"
2020-08-14 16:12:24 -04:00
repos:
2020-08-14 16:12:24 -04:00
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.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
exclude: ^cibuildwheel/resources/android/android.patch$
2020-08-14 16:12:24 -04:00
2023-07-03 18:21:29 -04:00
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 0671d8ab202c4ac093b78433ae5baf74f3fc7246 # frozen: v0.15.15
2023-01-30 15:53:44 -05:00
hooks:
2025-09-14 23:14:45 +05:30
- id: ruff-check
2026-03-24 23:51:49 -04:00
args: ["--fix"]
2023-10-27 01:21:20 -04:00
- id: ruff-format
2023-01-30 15:53:44 -05:00
2020-08-14 16:12:24 -04:00
- repo: https://github.com/pre-commit/mirrors-mypy
rev: d2823d321df3af8f878f7ee3414dc94d037145b9 # frozen: v2.1.0
2020-08-14 16:12:24 -04:00
hooks:
- id: mypy
name: mypy 3.11 on cibuildwheel/
args: ["--python-version=3.11"]
exclude: ^cibuildwheel/resources/android/_cross_venv.py$ # Requires Python 3.13 or later
additional_dependencies: &mypy-dependencies
- bracex
- build
2024-11-04 15:25:01 -05:00
- dependency-groups>=1.2
2025-07-15 20:45:53 -07:00
- humanize
2025-02-25 01:43:09 -05:00
- nox>=2025.2.9
- orjson
- packaging
- pygithub
2024-10-22 10:16:59 -04:00
- pytest
- rich
2022-06-27 23:40:41 -04:00
- tomli_w
- types-certifi
- types-click
- types-jinja2
- types-pyyaml
- types-requests
2024-10-22 10:16:59 -04:00
- types-setuptools
2024-06-09 15:45:31 -04:00
- uv
- validate-pyproject
- id: mypy
name: mypy 3.14
args: ["--python-version=3.14"]
additional_dependencies: *mypy-dependencies
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
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: cog
name: Cog the README
language: python
pass_filenames: false
entry: cog -c -P -r -I ./bin README.md
files: '^(README\.md|docs/changelog\.md|docs/options\.md|bin/readme.*)$'
2025-06-10 01:54:45 -04:00
additional_dependencies: [cogapp>=3.5]
2021-07-14 13:45:04 -04:00
- repo: https://github.com/codespell-project/codespell
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
2021-07-14 13:45:04 -04:00
hooks:
- id: codespell
args: ["-w"]
2022-08-22 09:01:20 -04:00
exclude: ^docs/working-examples\.md$ # Autogenerated
2024-01-29 15:39:04 -05:00
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 943377262562a12b57292fc98fabd7dbf81451fe # frozen: 0.37.2
2024-01-29 15:39:04 -05:00
hooks:
- id: check-dependabot
- id: check-github-actions
- id: check-github-workflows
- id: check-gitlab-ci
2026-03-24 23:51:49 -04:00
- id: check-readthedocs
2024-01-29 15:39:04 -05:00
- id: check-travis
- id: check-jsonschema
name: Check projects
args: [--schemafile, docs/data/projects.schema.json]
files: '^docs/data/projects.yml$'
- id: check-metaschema
files: '^docs/data/projects.schema.json$'