-
Notifications
You must be signed in to change notification settings - Fork 8
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
Lint fixes #37
Lint fixes #37
Conversation
@yunhailuo This PR is ready. Please review. 😊 |
Sorry. Just re-organized travis code. Please rebase. |
Rebased. :) |
Please take a look @yunhailuo. |
I have some hesitation on how we would ignore rules. Like W503 should be ignored as they said so. But others, overall ignores in config or inline ignore, I'd prefer to be careful and specific. By being specific, I mean
This is my general thinking. We will need some discussions like:
|
Looks good. Let me know your thoughts on global ignore when you are ready. |
Global Ignores:
Local Ignores:
|
An example? |
|
02b9ead uses |
Thanks for the example. Looked into W605 a little bit. In the long run, it may become SyntaxError. We should not ignore it. It seems make docstring a raw string will fix it. I haven't try though. I saw only four in |
What is black? A link for intro or doc? |
No longer ignoring |
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.
I actually like quite some changes made by black
here. But some are confusing to me. I guess the question is what it is and if they are really official. We can follow it since it's kind of official/good. But I don't think we have to following it 100%. I'd say we could have a few small tweaks.
I went through most but it's a lot and I probably didn't cover all details. The good part though is you help us with tests so that we could be confident about it working.
My suggestion is make changes by black
(both auto and manual tweaks after) a single independent commit. That way we might, though less likely, be able to revert it later if needed.
# samples_json.append(r) | ||
# for r in res: | ||
# r.setdefault('samples', [{}]) | ||
# samples_json.append(r) |
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.
Should we just delete these three lines? I'd like to but need a second opinion.
Thanks. Seems like a good tool to have and use. |
|
Now all the black lint fixes are in 866d14b. |
Looks good. Really a lot of changes. Great job! |
No description provided.