-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (46 loc) · 1.28 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (46 loc) · 1.28 KB
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
repos:
- repo: local
hooks:
- id: checkcopyrights
name: Copyright check
language: system
require_serial: true
entry: bash scripts/pre-commit-checkcopyrights.sh
types: [text]
- id: eclipseformat
name: Eclipse formatter
language: system
require_serial: true
entry: bash scripts/pre-commit-eclipseformat.sh
types: [text]
files: '\.java$'
- id: checkstyle
name: Checkstyle
language: system
require_serial: true
entry: bash scripts/pre-commit-checkstyle.sh
types: [text]
files: '\.java$'
- id: pylint
name: Pylint on mx files
language: system
pass_filenames: false
require_serial: true
entry: bash scripts/pre-commit-pylint.sh
types: [text]
files: '^mx\.graalpython/.*\.py$'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: trailing-whitespace-fixer
language: python
types: [text]
files: '\.(java|py|md|c|h|sh)$'
exclude: '^graalpython/lib-python/.*|graalpython/com.oracle.graal.python.pegparser/src/com/oracle/graal/python/pegparser/Parser.java'
- id: check-toml
exclude: '^graalpython/lib-python/.*'
- id: check-added-large-files
exclude: '^abi/abi-.*\.xml'
- id: check-symlinks