-
-
Notifications
You must be signed in to change notification settings - Fork 314
apply black/isort formatting/sorting #190
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
Conversation
| # Mapping of country names to alpha-2 codes according to | ||
| # https://en.wikipedia.org/wiki/ISO_3166-1. | ||
| # As a reference see also https://github.com/TakahikoKawasaki/nv-i18n (in Java) | ||
| # fmt: off |
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 turned the formatting off here since it looks so nice 😄
| fmt: | ||
| isort -rc --atomic | ||
| black . | ||
|
|
||
| check-fmt: | ||
| isort -rc --check | ||
| black . --check --diff |
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.
new fmt and check-fmt commands
disable `bad-continuation` up max-line-length to `120`
ExpDev07
left a comment
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.
Looks good!
ExpDev07
left a comment
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.
nicely done. LGTM.
Addresses #187
Will also impact #169
blackandisortto play nice with each other and respect a line length of120.make fmtmake check-fmthttps://github.com/psf/black
https://github.com/timothycrosley/isort
TODO
120