File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,15 @@ This is a work in progress.
20
20
21
21
[ learn ] : https://learn.adafruit.com/
22
22
23
+ ## Running pylint locally
24
+ Install a specific version of pylint under the name "pylint-learn":
25
+ ```
26
+ pip install pipx
27
+ pipx install --suffix=-learn pylint==2.7.1
28
+ ```
29
+ Then use the ` pylint_check ` script to run pylint on the files or directories
30
+ of your choice (note that your terminal * must* be in the top directory of
31
+ Adafruit_Learning_System_Guides, not a sub-directory):
32
+ ```
33
+ ./pylint_check CircuitPython_Cool_Project
34
+ ```
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- PYLINT=" ` type -p pylint3 2> /dev/null || type -p pylint` "
3
+ PYLINT=" ` type -p pylint-learn 2> /dev/null || type -p pylint3 2> /dev/null || type -p pylint` "
4
4
echo " Using pylint bin at $PYLINT "
5
5
6
6
# Use * as the default argument to avoid descending into hidden directories like .git
You can’t perform that action at this time.
0 commit comments