File tree Expand file tree Collapse file tree 5 files changed +61
-2
lines changed Expand file tree Collapse file tree 5 files changed +61
-2
lines changed Original file line number Diff line number Diff line change
1
+ venv
Original file line number Diff line number Diff line change
1
+ ---
2
+ repos :
3
+ - repo : https://github.com/adrienverge/yamllint.git
4
+ rev : v1.24.2
5
+ hooks :
6
+ - id : yamllint
7
+ args : [-c=./local/yamllint_config.yaml]
8
+
9
+ - repo : https://github.com/frnmst/md-toc
10
+ rev : master # or a specific git tag from md-toc
11
+ hooks :
12
+ - id : md-toc
13
+ - repo : https://github.com/pre-commit/pre-commit-hooks
14
+ rev : v2.0.0
15
+ hooks :
16
+ - id : check-added-large-files
17
+ - id : check-case-conflict
18
+ - id : check-executables-have-shebangs
19
+ - id : check-json
20
+ - id : check-merge-conflict
21
+ - id : check-yaml
22
+ - id : debug-statements
23
+ - id : check-symlinks
24
+ - id : detect-private-key
25
+ - id : end-of-file-fixer
26
+ - id : trailing-whitespace
27
+ exclude : (.github/CODEOWNERS|validator.bats)
Original file line number Diff line number Diff line change
1
+ # Use a standard bash shell, avoid zsh or fish
2
+ SHELL: =/bin/bash
3
+
4
+ # Select the default target, when you are simply running "make"
5
+ .DEFAULT_GOAL: =lint
6
+
7
+ # local executables
8
+ pip: =./venv/bin/pip
9
+ pre-commit =./venv/bin/pre-commit
10
+
11
+ .PHONY : lint venv
12
+
13
+ venv :
14
+ python3.7 -m venv venv
15
+ $(pip ) install pre-commit
16
+
17
+ lint :
18
+ $(pre-commit ) run --all-files
Original file line number Diff line number Diff line change
1
+ ---
1
2
name : ' Commit message validator'
2
- description : ' Enforce angular commit message convention with minimal dependancy only git and bash.'
3
+ description : >
4
+ Enforce angular commit message convention with minimal dependency only git and bash.
3
5
author : ' Sébastien Boulle'
4
6
branding :
5
7
icon : ' check-square'
23
25
shell : bash
24
26
25
27
- name : Validation
26
- run : ${{ github.action_path }}/check.sh ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
28
+ run : |
29
+ ${{ github.action_path }}/check.sh \
30
+ ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}
27
31
env :
28
32
COMMIT_VALIDATOR_NO_JIRA : ${{ inputs.no_jira }}
29
33
COMMIT_VALIDATOR_ALLOW_TEMP : ${{ inputs.allow_temp }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ extends : default
3
+ ignore : |
4
+ .github/workflows/
5
+ venv/
6
+ rules :
7
+ line-length :
8
+ max : 120
9
+ comments-indentation : disable
You can’t perform that action at this time.
0 commit comments