-
Notifications
You must be signed in to change notification settings - Fork 26
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
better isort defaults, rerun, reblacked #1923
Conversation
setup.cfg
Outdated
force_grid_wrap = 0 | ||
line_length = 119 | ||
combine_as_imports = True | ||
sections = FUTURE,STDLIB,THIRDPARTY,DJANGO,DJANGOTHIRDPARTY,FIRSTPARTY,LOCALFOLDER |
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.
not sure I'd bother splitting third party into THIRDPARTY,DJANGO,DJANGOTHIRDPARTY but no biggie
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.
Not sure it is actually being triggered anywhere
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.
all the files I'm seeing now have django.* imports in their own section
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.
Oh thought you were talking third party django vs django. I for one like having Django being in their own thing.
This is why we shouldn't have options!
Found that with |
combine_as_imports = True | ||
sections = FUTURE,STDLIB,THIRDPARTY,DJANGO,DJANGOTHIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
known_django = django | ||
known_djangothirdparty = celery, leaflet |
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 think smartmin, DRF, django-countries should also belong in the django third party
Trailing comma in black is the only difference now, could be worth doing this until a new version of black comes out:
psf/black#250