๐Ÿ“ฆ eifinger / pywaze

๐Ÿ“„ .pre-commit-config.yaml ยท 131 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131---
repos:
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.1.7
    hooks:
      - id: ruff-format
        name: โ˜•๏ธ Format using ruff
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.1.7
    hooks:
      - id: ruff
        name: โœ… Lint using ruff
        args: [--fix, --exit-non-zero-on-fix]
  - repo: https://github.com/pre-commit/mirrors-prettier
    rev: "v3.0.0-alpha.6"
    hooks:
      - id: prettier
        name: ๐Ÿ’„ Ensuring files are prettier
        types: [yaml, json, markdown]
  - repo: local
    hooks:
      - id: check-ast
        name: ๐Ÿ Check Python AST
        language: system
        types: [python]
        entry: uv run check-ast
      - id: check-case-conflict
        name: ๐Ÿ”  Check for case conflicts
        language: system
        entry: uv run check-case-conflict
      - id: check-docstring-first
        name: โ„น๏ธ  Check docstring is first
        language: system
        types: [python]
        entry: uv run check-docstring-first
      - id: check-executables-have-shebangs
        name: ๐Ÿง Check that executables have shebangs
        language: system
        types: [text, executable]
        entry: uv run check-executables-have-shebangs
        stages: [commit, push, manual]
      - id: check-json
        name: ๏ฝ› Check JSON files
        language: system
        types: [json]
        entry: uv run check-json
      - id: check-merge-conflict
        name: ๐Ÿ’ฅ Check for merge conflicts
        language: system
        types: [text]
        entry: uv run check-merge-conflict
      - id: check-symlinks
        name: ๐Ÿ”— Check for broken symlinks
        language: system
        types: [symlink]
        entry: uv run check-symlinks
      - id: check-toml
        name: โœ… Check TOML files
        language: system
        types: [toml]
        entry: uv run check-toml
      - id: check-xml
        name: โœ… Check XML files
        entry: check-xml
        language: system
        types: [xml]
      - id: check-yaml
        name: โœ… Check YAML files
        language: system
        types: [yaml]
        entry: uv run check-yaml
      - id: codespell
        name: โœ… Check code for common misspellings
        language: system
        types: [text]
        exclude: |
          (?x)^(
              .lock|
              CHANGELOG.md
          )$
        entry: uv run codespell --ignore-words=.codespell
      - id: debug-statements
        name: ๐Ÿชต  Debug Statements and imports (Python)
        language: system
        types: [python]
        entry: uv run debug-statement-hook
      - id: detect-private-key
        name: ๐Ÿ•ต๏ธ  Detect Private Keys
        language: system
        types: [text]
        entry: uv run detect-private-key
      - id: end-of-file-fixer
        name: โฎ  Fix End of Files
        language: system
        types: [text]
        entry: uv run end-of-file-fixer
        stages: [commit, push, manual]
      - id: fix-byte-order-marker
        name: ๐Ÿš Fix UTF-8 byte order marker
        language: system
        types: [text]
        entry: uv run fix-byte-order-marker
      - id: mypy
        name: ๐Ÿ†Ž Static type checking using mypy
        language: system
        types: [python]
        entry: uv run mypy
        require_serial: true
      - id: pytest
        name: ๐Ÿงช Running tests and test coverage with pytest
        language: system
        types: [python]
        entry: uv run pytest
        pass_filenames: false
      - id: trailing-whitespace
        name: โœ„  Trim Trailing Whitespace
        language: system
        types: [text]
        entry: uv run trailing-whitespace-fixer
        stages: [commit, push, manual]
      - id: yamllint
        name: ๐ŸŽ—  Check YAML files with yamllint
        language: system
        types: [yaml]
        entry: uv run yamllint
  - repo: https://github.com/koalaman/shellcheck-precommit
    rev: "v0.9.0"
    hooks:
      - id: shellcheck
        name: โœ… Check Shell files