Closed jandom closed 1 year ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Thanks for the review! Sorry random question – not really in scope of this PR – how do you feel about things like black, isort in this community? (And then brining these tools in together via pre-commit so that people have a smoother sailing locally)
Because of the size of the existing code in the org, we've agreed that black
will not be auto applied (at least for now on the core library). I personally don't really mind isort as long as it doesn't add to existing CI burdens.
I've now come around to black, especially for larger communities. I agree with Irfan that I wouldn't want to muddle commit history with black, but if we can apply it to diffs only then it's probably on the whole beneficial!
There are already at least two other points of discussion for this. Can I ask that this gets moved to one of them please? In the nicest way possible I'd prefer not have to re-make the same points from those discussions here.
Also whilst I'm here - working on diffs is problematic for black
because it misses out historical style and linespace violations. See our darker
action to see how that ends up happening in the wild.
@jandom Part of the relevant discussion is here: https://github.com/MDAnalysis/mdanalysis/issues/2450.
@lilyminium argument is what convinced me it was not a very good idea to apply black
to the whole code base. However, as you can see from my last comment in the aforementioned thread, that is no longer an issue and personally I don't see any good argument against it anymore (many large projects adopted it and have reformatted the whole code base).
Thank you all for responding, I gotta say it made me giggle as this is probably the PR with most discussion after the merge :P
I've only read https://github.com/MDAnalysis/mdanalysis/issues/2450 casually now but sounds like no stone was left unturned.
Sorry to have kicked an old wasps nest! I probed in the gentlest possible way :P What about trying out some of this tooling for auxiliary repos, like this one?
A very minor PR, fixes two warning messages that appear when running 'make html'
And the missing reference