-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[WIP] Add pep8 to Travis #973
Conversation
|
||
script: | ||
- python setup.py test | ||
- find . -name \*.py -exec pep8 --ignore=E402 {} + | wc -l |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change ignore to E501 for suppressing "long line" errors.
There are definitely pep8 violations so I expected pep8 check to fail. How come it passes? |
|
||
script: | ||
- python setup.py test | ||
- find . -name \*.py -exec pep8 --ignore=E501 {} + | wc -l |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tmylk he pipelined the errors to show the number of errors instead of raising an error.
@souravsingh please change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright!! done!
Add E701 and E241 in ignore for scripts in parsing directory
Coala installation is creating a problem for Python 2.x systems. Coala is Python 3 only |
It is ok that coala is only in Python 3. It is sufficient to have pep8 checks in Python 3 only. |
I have added the coala config file. Is there any directories that needs excemption from PEP8 check?( I am thinking of adding /models to ignore list) |
the pep8bear is not running according to the travis log. Please add it to run in Travis CI |
coala bears is now up and running. |
Can we configure coala to run only on some files? Let's enable it only for the ones that are already clean. |
@tmylk We can configure the coala to run the Bears by making modifications to the config file accordingly. |
@tmylk
|
@nishnik First thanks for the contribution. I will give my two cents on the issue
I leave it upto @tmylk to decide on which approach would be nice. |
@souravsingh
Sorry that I was not able to get my intentions clearly to you regarding your 3rd point. I have contributed to SymEngine where while I was working on lint checking, it was made sure that we should check for lint errors only once in travis instances, because it is redundant to check for lint errors in every instance (this increases the wait time for getting the ci results). |
@nishnik Agree that just Also thanks a lot for the cleaned code! May I use it as a PR? May I also ask about the choice of the errors to ignore: E501,E241,W,E731,E402,E265. Are they based on some specific experience in Gensim code? E501 for line length is clear. Curious about others. |
@tmylk |
@tmylk Closing the PR since the work is finished. |
@souravsingh Finished by whom? |
Fixes #965