File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,14 @@ jobs:
4242 # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
4343 run : |
4444 source actions-ci/install.sh
45- - name : Pip install pylint, Sphinx, pre-commit
45+ - name : Pip install Sphinx, pre-commit
4646 run : |
47- pip install --force-reinstall pylint Sphinx sphinx-rtd-theme pre-commit
47+ pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
4848 - name : Library version
4949 run : git describe --dirty --always --tags
5050 - name : Pre-commit hooks
5151 run : |
5252 pre-commit run --all-files
53- - name : PyLint
54- run : |
55- pylint $( find . -path './adafruit*.py' )
56- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace $( find . -path "./examples/*.py" ))
5753 - name : Build assets
5854 run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
5955 - name : Archive bundles
Original file line number Diff line number Diff line change @@ -17,3 +17,18 @@ repos:
1717 - id : check-yaml
1818 - id : end-of-file-fixer
1919 - 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
250250ignore-docstrings =yes
251251
252252# Ignore imports when computing similarities.
253- ignore-imports =no
253+ ignore-imports =yes
254254
255255# Minimum lines number of a similarity.
256256min-similarity-lines =4
You can’t perform that action at this time.
0 commit comments