-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
44 lines (37 loc) · 1.09 KB
/
.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
35
36
37
38
39
40
41
42
43
44
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
name: Check for merge conflict strings
- id: end-of-file-fixer
name: Fix missing newline at the end of files
- id: check-shebang-scripts-are-executable
name: Check shell scripts are executable
files: \.(sh)$
- id: check-yaml
name: Check pipelines configuration
files: ^(azure|.github)
- repo: https://github.com/pycqa/flake8
rev: "7ef0350a439c93166bc8ba89fcc3de6a9a664e6c" # release 6.1.0
hooks:
- id: flake8
- repo: local
hooks:
- id: lint specification
name: Lint specification
entry: npm
args: ["run", "lint"]
language: system
files: ^specification
pass_filenames: false
- id: lint-githubactions
name: Lint github actions
entry: make
args: ["lint-githubactions"]
language: system
files: ^.github
types_or: [yaml]
pass_filenames: false
fail_fast: true
default_stages: [commit]