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
|
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
|
|
|
|
|
|
2021-01-15 15:40:03 +01:00
|
|
|
- repo: https://github.com/psf/black
|
2022-12-14 00:04:48 -05:00
|
|
|
rev: 22.12.0
|
2021-01-15 15:40:03 +01:00
|
|
|
hooks:
|
|
|
|
|
- id: black
|
|
|
|
|
|
2023-01-30 15:53:44 -05:00
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
|
|
|
rev: v0.0.237
|
|
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
|
|
|
|
args: ["--fix"]
|
|
|
|
|
|
2021-04-25 12:38:28 -04:00
|
|
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
2022-11-01 09:36:09 +01:00
|
|
|
rev: v2.2.0
|
2021-04-25 12:38:28 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: setup-cfg-fmt
|
2022-10-10 14:44:38 -04:00
|
|
|
args: [--include-version-classifiers, --max-py-version=3.11]
|
2021-04-25 12:38:28 -04:00
|
|
|
|
2020-08-14 16:12:24 -04:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2022-11-21 20:00:54 +00:00
|
|
|
rev: v0.991
|
2020-08-14 16:12:24 -04:00
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
2022-07-14 12:47:01 +02:00
|
|
|
name: mypy 3.7 on cibuildwheel/
|
|
|
|
|
exclude: ^cibuildwheel/resources/.*py$
|
|
|
|
|
args: ["--python-version=3.7"]
|
2021-10-16 21:31:20 -04:00
|
|
|
additional_dependencies: &mypy-dependencies
|
2021-10-26 15:56:35 -04:00
|
|
|
- nox
|
2022-12-14 00:04:48 -05:00
|
|
|
- packaging~=21.0
|
2021-10-26 15:56:35 -04:00
|
|
|
- pygithub
|
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
|
2021-09-19 00:19:28 -04:00
|
|
|
- types-dataclasses
|
2021-10-16 21:31:20 -04:00
|
|
|
- types-jinja2
|
|
|
|
|
- types-pyyaml
|
|
|
|
|
- types-requests
|
2021-10-26 15:56:35 -04:00
|
|
|
- bracex
|
2022-02-11 10:17:40 -05:00
|
|
|
- dataclasses
|
|
|
|
|
- id: mypy
|
|
|
|
|
name: mypy 3.10
|
2022-11-23 19:03:57 +00:00
|
|
|
exclude: ^cibuildwheel/resources/.*py$
|
2022-04-01 22:00:07 -04:00
|
|
|
args: ["--python-version=3.10"]
|
2021-10-16 21:31:20 -04:00
|
|
|
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
|
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
|
2022-10-17 20:00:35 +00:00
|
|
|
rev: v2.2.2
|
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
|