Comments (10)
see now you're bikeshedding the style
from reorder-python-imports.
I should add that I'm happy to have a crack at a PR, just given the history I'd like to check first if it's going to get a flat no response. And if not how you feel about the optional vs always question.
from reorder-python-imports.
no thanks -- the whole point of the tool is there's no bikeshedding. it does one thing and only one thing. isort for example has a fractal of options which makes it impossible to agree on a style
from reorder-python-imports.
ok, but what about as unconditional, which would be my suggested option anyway.
from reorder-python-imports.
I strongly agree with limited options, I like black for that as well.
from reorder-python-imports.
it already is unconditional?
from reorder-python-imports.
I mean always sort relative imports after absolute ones. Don't provide an option, change the opinionated style.
from reorder-python-imports.
Within the existing blocks, so just a couple of lines change to each of the sort_key functions. The number field at the front that's used for distinguishing from imports could be extended to have a couple more values for relative and from relative.
from reorder-python-imports.
A new value for relative, there isn't a import .bob
, clearly time for me to go home for the evening.
from reorder-python-imports.
I viewed it as suggesting an improvement to a bit of the style that afaik you don't personally care about.
from reorder-python-imports.
Related Issues (20)
- Gracefully handle try, except blocks in imports HOT 3
- multiline import from same package? HOT 2
- Option to disable reordering HOT 4
- Support for pyi files now types_or is implemented HOT 3
- distutils ordered as a third-party package HOT 1
- Not numerically sorting HOT 2
- Sylink dirs treated as 3rd party modules HOT 6
- Option to disable import replacement HOT 1
- triple-quoted docstring with trailing backslash silently prevents reordering HOT 2
- Performance impact in having a single import per line HOT 3
- disable remove duplicates in argument HOT 1
- Support for ignoring certain files HOT 1
- Removes blank lines between comments HOT 2
- add-import with module without imports HOT 1
- Adding prober ignore files HOT 1
- can you please add the lxml library. HOT 9
- Support pyproject.toml
- winreg missing from six._moved_attributes on non-Windows platforms
- Better support for `_typeshed` imports HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reorder-python-imports.