2026-03-10 18:36:10 -04:00
|
|
|
ci:
|
|
|
|
|
autoupdate_schedule: monthly
|
2026-05-23 10:47:49 -04:00
|
|
|
exclude: "^cibuildwheel/resources/ios-support/(?!make_cross_venv\\.py)"
|
2020-08-14 16:12:24 -04:00
|
|
|
|
2026-03-10 18:36:10 -04:00
|
|
|
repos:
|
2020-08-14 16:12:24 -04:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2026-03-25 03:33:54 +05:30
|
|
|
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
|
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
|
2026-04-13 16:08:48 +01:00
|
|
|
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
|
2026-07-07 10:45:25 +05:30
|
|
|
rev: c59bba8fb259db0fec2bbb77ad8ba51ea7341b56 # frozen: v0.15.20
|
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
|
2026-06-01 18:27:34 -04:00
|
|
|
rev: d2823d321df3af8f878f7ee3414dc94d037145b9 # frozen: v2.1.0
|
2020-08-14 16:12:24 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
2025-01-16 16:45:18 +01:00
|
|
|
name: mypy 3.11 on cibuildwheel/
|
|
|
|
|
args: ["--python-version=3.11"]
|
2026-04-13 16:08:48 +01:00
|
|
|
exclude: ^cibuildwheel/resources/android/_cross_venv.py$ # Requires Python 3.13 or later
|
2021-10-16 21:31:20 -04:00
|
|
|
additional_dependencies: &mypy-dependencies
|
2023-09-26 11:23:20 -05:00
|
|
|
- bracex
|
2025-07-23 22:18:33 +01:00
|
|
|
- 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
|
2023-06-27 17:30:17 -04:00
|
|
|
- packaging
|
2021-10-26 15:56:35 -04:00
|
|
|
- pygithub
|
2024-10-22 10:16:59 -04:00
|
|
|
- pytest
|
2021-10-16 21:31:20 -04:00
|
|
|
- rich
|
2022-06-27 23:40:41 -04:00
|
|
|
- tomli_w
|
2021-10-16 21:31:20 -04:00
|
|
|
- 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
|
2023-09-26 11:23:20 -05:00
|
|
|
- validate-pyproject
|
2022-02-11 10:17:40 -05:00
|
|
|
- id: mypy
|
2025-12-02 18:06:04 -05:00
|
|
|
name: mypy 3.14
|
|
|
|
|
args: ["--python-version=3.14"]
|
2021-10-16 21:31:20 -04:00
|
|
|
additional_dependencies: *mypy-dependencies
|
|
|
|
|
|
|
|
|
|
- repo: https://github.com/shellcheck-py/shellcheck-py
|
2026-03-25 03:33:54 +05:30
|
|
|
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
|
2021-10-16 21:31:20 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: shellcheck
|
2021-02-04 22:08:18 -05:00
|
|
|
|
|
|
|
|
- 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
|
2025-05-28 23:36:16 -04:00
|
|
|
types: [markdown]
|
2022-08-22 09:01:20 -04:00
|
|
|
exclude: ^docs/working-examples\.md$ # Autogenerated
|
2025-05-28 23:36:16 -04:00
|
|
|
- id: cog
|
|
|
|
|
name: Cog the README
|
2021-07-20 08:59:19 +01:00
|
|
|
language: python
|
2025-05-28 20:38:53 +01:00
|
|
|
pass_filenames: false
|
2025-05-28 23:36:16 -04:00
|
|
|
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
|
|
|
|
2026-06-12 09:01:49 -04:00
|
|
|
- repo: https://github.com/henryiii/flake8-lazy
|
2026-07-07 10:45:25 +05:30
|
|
|
rev: 5fed9a818f2583f0403aed779bf2b6c9aa8d25f4 # frozen: v0.8.5
|
2026-06-12 09:01:49 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: flake8-lazy
|
|
|
|
|
args: ["--apply=set"]
|
|
|
|
|
files: '^cibuildwheel'
|
|
|
|
|
exclude: "^cibuildwheel/resources/"
|
|
|
|
|
|
2021-07-14 13:45:04 -04:00
|
|
|
- repo: https://github.com/codespell-project/codespell
|
2026-03-25 03:33:54 +05:30
|
|
|
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
|
2021-07-14 13:45:04 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: codespell
|
2025-05-25 07:58:13 -04:00
|
|
|
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
|
2026-07-07 10:45:25 +05:30
|
|
|
rev: 1a4bb160cab6417b3045e1b37b6b72449243e658 # frozen: 0.37.4
|
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-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$'
|