File: .pre-commit-config.yaml

package info (click to toggle)
zigpy 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,248 kB
  • sloc: python: 40,505; sql: 2,253; sh: 13; makefile: 7
file content (24 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
repos:
  - repo: local
    hooks:
      - id: ruff
        name: ruff
        entry: script/run-in-env.sh ruff check --fix --exit-non-zero-on-fix --config pyproject.toml
        language: script
        types_or: [python, pyi]
      - id: ruff-format
        name: ruff-format
        entry: script/run-in-env.sh ruff format --config pyproject.toml
        language: script
        types_or: [python, pyi]
      - id: codespell
        name: codespell
        entry: script/run-in-env.sh codespell --toml pyproject.toml
        language: script
        types: [text]
      - id: mypy
        name: mypy
        entry: script/run-in-env.sh mypy
        language: script
        types_or: [python, pyi]
        exclude: ^tests/