File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ jobs:
42
42
# (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
43
43
run : |
44
44
source actions-ci/install.sh
45
- - name : Pip install pylint, black, & Sphinx
45
+ - name : Pip install pylint, Sphinx, pre-commit
46
46
run : |
47
- pip install --force-reinstall pylint black==19.10b0 Sphinx sphinx-rtd-theme
47
+ pip install --force-reinstall pylint Sphinx sphinx-rtd-theme pre-commit
48
48
- name : Library version
49
49
run : git describe --dirty --always --tags
50
- - name : Check formatting
50
+ - name : Pre-commit hooks
51
51
run : |
52
- black --check --target-version=py35 .
52
+ pre-commit run --all-files
53
53
- name : PyLint
54
54
run : |
55
55
pylint $( find . -path './adafruit*.py' )
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ bundles
12
12
* .DS_Store
13
13
.eggs
14
14
dist
15
- ** /* .egg-info
15
+ ** /* .egg-info
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/python/black
7
+ rev : 19.10b0
8
+ hooks :
9
+ - id : black
10
+ - repo : https://github.com/fsfe/reuse-tool
11
+ rev : latest
12
+ hooks :
13
+ - id : reuse
14
+ - repo : https://github.com/pre-commit/pre-commit-hooks
15
+ rev : v2.3.0
16
+ hooks :
17
+ - id : check-yaml
18
+ - id : end-of-file-fixer
19
+ - id : trailing-whitespace
You can’t perform that action at this time.
0 commit comments