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
|
2024-10-07 18:25:09 -04:00
|
|
|
rev: v5.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
|
|
|
|
|
|
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
|
2023-04-17 14:06:56 -04:00
|
|
|
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
|
2024-10-28 23:17:29 -04:00
|
|
|
rev: v1.13.0
|
2020-08-14 16:12:24 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
2023-06-14 00:02:10 +02:00
|
|
|
name: mypy 3.8 on cibuildwheel/
|
2023-09-26 11:23:20 -05:00
|
|
|
exclude: ^cibuildwheel/resources/.*py|bin/generate_schema.py$
|
2023-06-14 00:02:10 +02:00
|
|
|
args: ["--python-version=3.8"]
|
2021-10-16 21:31:20 -04:00
|
|
|
additional_dependencies: &mypy-dependencies
|
2023-09-26 11:23:20 -05:00
|
|
|
- bracex
|
2024-11-04 15:25:01 -05:00
|
|
|
- dependency-groups>=1.2
|
2021-10-26 15:56:35 -04:00
|
|
|
- nox
|
2024-10-28 23:17:29 -04:00
|
|
|
- orjson
|
2023-06-27 17:30:17 -04:00
|
|
|
- packaging
|
2021-10-26 15:56:35 -04:00
|
|
|
- pygithub
|
2026-03-16 19:24:46 +00:00
|
|
|
- pytest<9
|
2021-10-16 21:31:20 -04:00
|
|
|
- rich
|
2021-10-15 11:30:16 -04:00
|
|
|
- tomli
|
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
|
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"]
|
2021-10-16 21:31:20 -04:00
|
|
|
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
|
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
|
2021-02-04 22:08:18 -05:00
|
|
|
types:
|
|
|
|
|
- markdown
|
2022-08-22 09:01:20 -04:00
|
|
|
exclude: ^docs/working-examples\.md$ # Autogenerated
|
2021-07-20 08:59:19 +01:00
|
|
|
- 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
|
2024-05-27 22:34:22 -04:00
|
|
|
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
|
2024-10-15 13:08:49 +02:00
|
|
|
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$'
|