| 1 |
|
| 2 |
|
| 3 |
exclude: "CHANGELOG.md" |
| 4 |
default_stages: [pre-commit] |
| 5 |
|
| 6 |
ci: |
| 7 |
autofix_commit_msg: "chore(pre-commit.ci): auto fixes" |
| 8 |
autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate" |
| 9 |
|
| 10 |
repos: |
| 11 |
- repo: https://github.com/commitizen-tools/commitizen |
| 12 |
rev: v4.4.1 |
| 13 |
hooks: |
| 14 |
- id: commitizen |
| 15 |
stages: [commit-msg] |
| 16 |
- repo: https://github.com/pre-commit/pre-commit-hooks |
| 17 |
rev: v5.0.0 |
| 18 |
hooks: |
| 19 |
- id: debug-statements |
| 20 |
- id: check-builtin-literals |
| 21 |
- id: check-case-conflict |
| 22 |
- id: check-docstring-first |
| 23 |
- id: check-json |
| 24 |
- id: check-toml |
| 25 |
- id: check-xml |
| 26 |
- id: check-yaml |
| 27 |
- id: detect-private-key |
| 28 |
- id: end-of-file-fixer |
| 29 |
- id: trailing-whitespace |
| 30 |
- id: debug-statements |
| 31 |
- repo: https://github.com/pre-commit/mirrors-prettier |
| 32 |
rev: v4.0.0-alpha.8 |
| 33 |
hooks: |
| 34 |
- id: prettier |
| 35 |
- repo: https://github.com/asottile/pyupgrade |
| 36 |
rev: v3.19.1 |
| 37 |
hooks: |
| 38 |
- id: pyupgrade |
| 39 |
args: [--py39-plus] |
| 40 |
- repo: https://github.com/astral-sh/ruff-pre-commit |
| 41 |
rev: v0.11.2 |
| 42 |
hooks: |
| 43 |
- id: ruff |
| 44 |
args: [--fix] |
| 45 |
- id: ruff-format |
| 46 |
- repo: https://github.com/cdce8p/python-typing-update |
| 47 |
rev: v0.7.1 |
| 48 |
hooks: |
| 49 |
- id: python-typing-update |
| 50 |
stages: [manual] |
| 51 |
args: |
| 52 |
- --py39-plus |
| 53 |
- --force |
| 54 |
- --keep-updates |
| 55 |
files: ^(flux_led)/.+\.py$ |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
- repo: https://github.com/pre-commit/mirrors-mypy.git |
| 61 |
rev: v1.15.0 |
| 62 |
hooks: |
| 63 |
- id: mypy |
| 64 |
alias: mypy-py313 |
| 65 |
name: MyPy, for Python 3.13 |
| 66 |
additional_dependencies: |
| 67 |
- pytest |
| 68 |
- webcolors |
| 69 |
args: |
| 70 |
- --python-version=3.13 |
| 71 |
files: ^(flux_led)/.+\.py$ |
| 72 |
- id: mypy |
| 73 |
alias: mypy-py39 |
| 74 |
name: MyPy, for Python 3.9 |
| 75 |
additional_dependencies: |
| 76 |
- async_timeout |
| 77 |
- pytest |
| 78 |
- webcolors |
| 79 |
args: |
| 80 |
- --python-version=3.9 |
| 81 |
files: ^(flux_led)/.+\.py$ |