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

98 lines
2.4 KiB
YAML
Raw Permalink 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: v5.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
2023-07-03 18:21:29 -04:00
- repo: https://github.com/astral-sh/ruff-pre-commit
2024-11-22 21:18:12 +00:00
rev: v0.8.0
2023-01-30 15:53:44 -05:00
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
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: v1.13.0
2020-08-14 16:12:24 -04:00
hooks:
- id: mypy
name: mypy 3.8 on cibuildwheel/
exclude: ^cibuildwheel/resources/.*py|bin/generate_schema.py$
args: ["--python-version=3.8"]
additional_dependencies: &mypy-dependencies
- bracex
2024-11-04 15:25:01 -05:00
- dependency-groups>=1.2
- nox
- orjson
- packaging
- pygithub
- pytest<9
- 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
2024-10-22 10:16:59 -04:00
- types-setuptools
2024-06-09 15:45:31 -04:00
- uv
- validate-pyproject
- id: mypy
2023-10-27 01:21:59 -04:00
name: mypy 3.12
2022-11-23 19:03:57 +00:00
exclude: ^cibuildwheel/resources/.*py$
2023-10-27 01:21:59 -04:00
args: ["--python-version=3.12"]
additional_dependencies: *mypy-dependencies
- repo: https://github.com/shellcheck-py/shellcheck-py
2024-03-18 19:44:26 +00:00
rev: v0.10.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: 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.3.0
2021-07-14 13:45:04 -04:00
hooks:
- id: codespell
2024-05-28 05:31:36 -07:00
args: ["-L", "sur,assertin", "-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: 0.29.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
- id: check-readthedocs
- 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$'