Closed mukul-mehta closed 4 years ago
Hello @mukul-mehta! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
iqps/frontend/forms.py
:Line 11:1: E305 expected 2 blank lines after class or function definition, found 1 Line 11:1: E402 module level import not at top of file
@grapheo12 In pycodestyle
settings, I've set the max line length parameter to be 120. Let's choose either 79 or 120 and then use that value for both pep8speaks
and pycodestyle
.
@mukul-mehta Can you please rebase your PR? I've recently cleaned up most of the PEP8 issues in #16 . Also let's keep the max line length to 120. Can you add a .pep8speaks.yml file?
@grapheo12 Sure, I'll make the changes.
@mukul-mehta How to use this sanity.sh file? How to ensure it runs on every PR?
@grapheo12 For now, I'm using a local pre-commit hook. I believe it would be a good idea to setup Travis or CircleCI to run the sanity script.
This PR adds a
sanity.sh
script that can be run to ensure there are no PEP8 errors. It uses the configurations defined in.pycodestylerc
and.pydocstylerc
to run checks.