-
-
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
Refactor current gensim code by PEP8 #1521
Comments
Hi, I'm trying to refactor by PEP8 E731 ( do not assign a lambda expression, use a def these error ) is often seen during refactoring ex) It looks like code writer prefer lambda expresion than def Do you think you should change lambda expression to def in case of E731 error? |
I send PR #1550
In case E203 error occurs in pep8 library( https://pypi.python.org/pypi/pep8 ), but it's fine in documentation( https://www.python.org/dev/peps/pep-0008/#other-recommendations ) I think E203 error corresponds to scope delimeter( like if True: ) So First, no change Second, line changed to Which of the two is better? |
The second option does not conform to PEP8 (see the "No:" section in https://www.python.org/dev/peps/pep-0008/#pet-peeves). Basically, the |
What about ignore F405 and F403 error
|
Resolved[1] in #1550, will be continued from me (double checking) |
* gensim dir PEP8 fixes * corpora dir PEP8 fixes * example dir PEP8 fixes * model/wrapper dir PEP8 fixes * models dir PEP8 fixes * parsing dir PEP8 fixes * scripts dir PEP8 fixes * similarities dir PEP8 fixes * summarization and topic_coherence dir PEP8 fixes * test dir PEP8 fixes * PEP8 E722 error fixes * PEP8 fixes * list slice whitespace PEP8 fixes * disassemble import * * Fix symlink * fix symlink * fix make_wiki_lemma file * Replace relative import to absolute * fix typo * fix E203 error
Continued in #1569 |
…orky#1550) * gensim dir PEP8 fixes * corpora dir PEP8 fixes * example dir PEP8 fixes * model/wrapper dir PEP8 fixes * models dir PEP8 fixes * parsing dir PEP8 fixes * scripts dir PEP8 fixes * similarities dir PEP8 fixes * summarization and topic_coherence dir PEP8 fixes * test dir PEP8 fixes * PEP8 E722 error fixes * PEP8 fixes * list slice whitespace PEP8 fixes * disassemble import * * Fix symlink * fix symlink * fix make_wiki_lemma file * Replace relative import to absolute * fix typo * fix E203 error
We have a lot of old code which doesn't satisfy PEP8, it's time to fix it!
What we want:
The text was updated successfully, but these errors were encountered: