-
Notifications
You must be signed in to change notification settings - Fork 789
Use pylint to lint check all examples #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We do this in libraries already and should follow the example settings there: https://github.com/adafruit/cookiecutter-adafruit-circuitpython/blob/master/%7B%7B%20cookiecutter.library_name%20%7D%7D/.travis.yml#L30 |
I'm going to work on:
|
one possible route - have the pylint script live in the root of the repo, and run on any .py script it finds, UNLESS a .circuitpython.skip file exists in the same directory of the .py script |
I'm working on adding a pylint script and a travis-ci config to run it |
@dylwhich Would you be able to add a pylint config file as well? |
I'm using the following to run pylint
It might make sense to Flake8 instead of PyLint as it's less opinionated. |
This is the final version of the pylint setup that I'm using
I'll try to explain each of the checks I've disabled in another message. |
|
Updated the pylintrc disable line to include a majority of the suggestions from @craigargh A detailed explanation of each disable added can be found here: adafruit#2 I chose to leave out anything that Craig stated could or should be refactored, including things he said he didn't have the eq to test etc.
@craigargh |
Fixed by #166. Thanks @craigargh ! |
It enforces pep8: https://github.com/PyCQA/pycodestyle
The text was updated successfully, but these errors were encountered: