Use pylint-learn as the pylint version, if installed
.. this allows a user to install the specific version of pylint required, under the specific name: ``` pipx install --suffix -learn pylint==2.7.1 ``` and run pylint_check more easily locally.
This commit is contained in:
parent
88e0aa6f8e
commit
541f533143
2 changed files with 12 additions and 1 deletions
11
README.md
11
README.md
|
|
@ -20,3 +20,14 @@ This is a work in progress.
|
||||||
|
|
||||||
[learn]: https://learn.adafruit.com/
|
[learn]: https://learn.adafruit.com/
|
||||||
|
|
||||||
|
## Running pylint locally
|
||||||
|
Install a specific version of pylint under the name "pylint-learn":
|
||||||
|
```
|
||||||
|
pip instal pipx
|
||||||
|
pipx install --suffix -learn pylint==2.7.1
|
||||||
|
```
|
||||||
|
Then use the `pylint_check` script to run pylint on the files or directories
|
||||||
|
of your choice:
|
||||||
|
```
|
||||||
|
./pylint_check CircuitPython_Cool_Project
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PYLINT="`type -p pylint3 2>/dev/null || type -p pylint`"
|
PYLINT="`type -p pylint-learn 2>/dev/null || type -p pylint3 2>/dev/null || type -p pylint`"
|
||||||
echo "Using pylint bin at $PYLINT"
|
echo "Using pylint bin at $PYLINT"
|
||||||
|
|
||||||
# Use * as the default argument to avoid descending into hidden directories like .git
|
# Use * as the default argument to avoid descending into hidden directories like .git
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue