forked from OpenNaja/cobra-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (34 loc) · 986 Bytes
/
.pre-commit-config.yaml
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
exclude: ^(constants|experimentals|hashes|dumps)/
repos:
- repo: local
hooks:
- id: version
name: Increment Version
entry: ./bin/increment_version.py
language: system
stages: [pre-commit, manual]
pass_filenames: false
always_run: true
- id: codegen
name: Run Codegen
entry: ./bin/run_codegen.py
language: system
stages: [pre-commit, manual]
files: ^source
pass_filenames: false
- id: check-imports
name: Check Imports
entry: ./bin/check_imports.py
language: system
stages: [pre-commit, manual]
files: '(.*_gui\.py|^gui/widgets\.py)'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
- id: check-toml
- id: check-xml
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=50000']
- id: check-shebang-scripts-are-executable