File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: Copyright (c) 2019 Anthony Sottile
2+ #
3+ # SPDX-License-Identifier: MIT
4+
5+ name : pre-commit
6+
7+ on :
8+ pull_request :
9+ push :
10+ branches : [master]
11+
12+ jobs :
13+ pre-commit :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v1
17+ - uses : actions/setup-python@v1
18+ - name : set PY
19+ run : echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
20+ - uses : actions/cache@v1
21+ with :
22+ path : ~/.cache/pre-commit
23+ key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
24+ - uses : pre-commit/action@v1.1.0
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2020 Diego Elio Pettenò
2+ #
3+ # SPDX-License-Identifier: Unlicense
4+
5+ repos :
6+ - repo : https://github.com/pre-commit/pre-commit-hooks
7+ rev : v2.3.0
8+ hooks :
9+ - id : check-yaml
10+ - id : end-of-file-fixer
11+ exclude : ' ^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
12+ - id : trailing-whitespace
13+ exclude : ' ^(tests/.*\.exp|tests/cmdline/.*|tests/.*/data/.*)'
You can’t perform that action at this time.
0 commit comments