-
Notifications
You must be signed in to change notification settings - Fork 1
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 with yapf and isort #1
base: master
Are you sure you want to change the base?
Conversation
from fake_useragent import UserAgent | ||
|
||
import mechanicalsoup |
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.
You don't must add a line break between fake_useragent and mechanicalsoup import.
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.
IMHO and from isort point of view module import import <module>
should be separate from sub-module import from <module> import <sub-module>
by a line break, that's why this line break is added
pychargifysimple/web.py
Outdated
@@ -3,10 +3,8 @@ | |||
import logging | |||
|
|||
from mechanicalsoup.browser import LinkNotFoundError | |||
|
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.
You don't must remove the line break here.
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 agree that current module import should be separate with by a line break from other module import, to do so and keep isort usage better explicit define current module import as local using dot syntax, in this example:
from .context_manager import login
Here is my [isort]
sections=FUTURE,STDLIB,THIRDPARTY,DJANGO,TAIGA,WAGTAIL,ODOO,ODOOADDONS,OPENERP,OPENERPADDONS,LOCALFOLDER,UNKNOWNTHIRDPARTY
known_odoo=odoo
known_odooaddons=odoo.addons
known_openerp=openerp
known_openerpaddons=openerp.addons
known_django=django
known_taiga=taiga
known_wagtail=wagtail
default_section=UNKNOWNTHIRDPARTY
multi_line_output=3 |
No description provided.