Skip to content
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

Fix flake8 lint error in our repo #234

Merged
merged 13 commits into from
Oct 22, 2019
Merged

Fix flake8 lint error in our repo #234

merged 13 commits into from
Oct 22, 2019

Conversation

gpengzhi
Copy link
Collaborator

  1. Add .flake8 file
  2. Update .travis.yml to get rid of a huge amount of error messages
  3. Fix flake8 lint errors in both texar and examples

@gpengzhi gpengzhi requested a review from ZhitingHu October 22, 2019 18:49
@@ -11,6 +11,7 @@
import regex as re
from functools import lru_cache


@lru_cache()
def bytes_to_unicode():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have the functions in this file been included in the GPT2 tokenizer etc as in Texar-PyTorch? So that we can get rid of this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. After this one is merged, I will refactor #228 and merge it at first and then polish GPT2 example.

@gpengzhi gpengzhi merged commit 22d7b8e into asyml:master Oct 22, 2019
@gpengzhi gpengzhi deleted the flake8 branch October 31, 2019 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants