File tree 3 files changed +20
-9
lines changed
3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 47
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: Pre-commit hooks
51
- # run: |
52
- # pre-commit run --all-files
53
- - name : PyLint
50
+ - name : Pre-commit hooks
54
51
run : |
55
- pylint $( find . -path './adafruit*.py' )
56
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace $( find . -path "./examples/*.py" ))
52
+ pre-commit run --all-files
57
53
- name : Build assets
58
54
run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
59
55
- name : Build docs
Original file line number Diff line number Diff line change 4
4
5
5
repos :
6
6
- repo : https://github.com/python/black
7
- rev : latest
7
+ rev : 20.8b1
8
8
hooks :
9
9
- id : black
10
10
- repo : https://github.com/fsfe/reuse-tool
11
- rev : latest
11
+ rev : v0.12.1
12
12
hooks :
13
13
- id : reuse
14
14
- repo : https://github.com/pre-commit/pre-commit-hooks
@@ -17,3 +17,18 @@ repos:
17
17
- id : check-yaml
18
18
- id : end-of-file-fixer
19
19
- id : trailing-whitespace
20
+ - repo : https://github.com/pycqa/pylint
21
+ rev : pylint-2.7.1
22
+ hooks :
23
+ - id : pylint
24
+ name : pylint (library code)
25
+ types : [python]
26
+ exclude : " ^(docs/|examples/|setup.py$)"
27
+ - repo : local
28
+ hooks :
29
+ - id : pylint_examples
30
+ name : pylint (examples code)
31
+ description : Run pylint rules on "examples/*.py" files
32
+ entry : /usr/bin/env bash -c
33
+ args : ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name $example; done)']
34
+ language : system
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ ignore-comments=yes
250
250
ignore-docstrings =yes
251
251
252
252
# Ignore imports when computing similarities.
253
- ignore-imports =no
253
+ ignore-imports =yes
254
254
255
255
# Minimum lines number of a similarity.
256
256
min-similarity-lines =4
You can’t perform that action at this time.
0 commit comments