File tree Expand file tree Collapse file tree 4 files changed +93
-0
lines changed
Expand file tree Collapse file tree 4 files changed +93
-0
lines changed Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/pre-commit/pre-commit-hooks
3+ rev : ' v4.0.1'
4+ hooks :
5+ - id : check-merge-conflict
6+ exclude : " rst$"
7+ - repo : https://github.com/asottile/yesqa
8+ rev : v1.2.3
9+ hooks :
10+ - id : yesqa
11+ - repo : https://github.com/pre-commit/mirrors-isort
12+ rev : ' v5.9.3'
13+ hooks :
14+ - id : isort
15+ - repo : https://github.com/psf/black
16+ rev : ' 21.8b0'
17+ hooks :
18+ - id : black
19+ language_version : python3 # Should be a command that runs python3.6+
20+ - repo : https://github.com/pre-commit/pre-commit-hooks
21+ rev : ' v4.0.1'
22+ hooks :
23+ - id : check-case-conflict
24+ - id : check-json
25+ - id : check-xml
26+ - id : debug-statements
27+ - id : check-added-large-files
28+ - id : end-of-file-fixer
29+ - id : requirements-txt-fixer
30+ - id : trailing-whitespace
31+ - id : check-symlinks
32+ - id : debug-statements
33+ - repo : https://github.com/asottile/pyupgrade
34+ rev : ' v2.25.1'
35+ hooks :
36+ - id : pyupgrade
37+ args : ['--py36-plus']
38+ - repo : https://gitlab.com/pycqa/flake8
39+ rev : ' 3.9.2'
40+ hooks :
41+ - id : flake8
42+ exclude : " ^docs/"
43+ - repo : https://github.com/rhysd/actionlint
44+ rev : v1.6.3
45+ hooks :
46+ - id : actionlint-docker
47+ args :
48+ - -ignore
49+ - ' SC2155:'
50+ - -ignore
51+ - ' SC2086:'
52+ - -ignore
53+ - ' SC1004:'
54+ ci :
55+ skip :
56+ - actionlint-docker
Original file line number Diff line number Diff line change 1+ setup :
2+ pip install -r requirements.txt
3+ pre-commit install
4+
5+ lint :
6+ pre-commit run --all-files
Original file line number Diff line number Diff line change 1+ name : ' Upload Image'
2+ description : ' Uploade Docker image as an artifact'
3+ inputs :
4+ artifact :
5+ description : ' The artifact name to store coverage chunk'
6+ required : false
7+ default : ' coverage'
8+ fail_ci_if_error :
9+ description : ' Fail CI if error'
10+ required : false
11+ default : true
12+ runs :
13+ using : " composite"
14+ steps :
15+ - name : Download artifacts
16+ uses : actions/download-artifact@v2
17+ with :
18+ name : ${{ inputs.artifact }}
19+ path : coverage
20+ - name : Collect names
21+ id : meta
22+ run : |
23+ FILES=$(find coverage -type f -print0 | tr '\0' ' ')
24+ echo "::set-output name=files::${FILES# // /,}"
25+ shell : bash
26+ - name : Upload coverage
27+ 28+ with :
29+ files : ${{ steps.meta.outputs.files }}
30+ fail_ci_if_error : ${{ inputs.fail_ci_if_error }}
Original file line number Diff line number Diff line change 1+ pre-commit == 2.15.0
You can’t perform that action at this time.
0 commit comments