-
Notifications
You must be signed in to change notification settings - Fork 196
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
Use ufmt
to unify black and import sort order
#515
Conversation
Codecov Report
@@ Coverage Diff @@
## master #515 +/- ##
=======================================
Coverage 94.73% 94.73%
=======================================
Files 235 235
Lines 23103 23103
=======================================
Hits 21886 21886
Misses 1217 1217
Continue to review full report at Codecov.
|
@zsol thoughts on using µsort instead? |
Yeah I'm with @jreese on this one |
7c33ae2
to
adde8cd
Compare
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, in particular keeping the exact-version constraint on black.
I think it's missing a change to tox.ini in |
Updated to use Still working on making CI run cleanly, I didn't realize Also sorted |
389bbcd
to
98a37d0
Compare
profile = "black"
for isort config. This changes the blank lines after imports.ufmt
to unify black and import sort order
98a37d0
to
d5549c6
Compare
More updates:
|
dc9fa8f
to
eeb419b
Compare
Looks like I also needed to regenerate some code. |
which ensures we won't have inconsistent black-vs-isort errors going forward. We can always format by running `ufmt format .` at the root, and check with `ufmt check .` in our CI actions.
eeb419b
to
076d61b
Compare
Summary
Use
ufmt
, which combinesblack
andusort
, instead ofdirectly relying on
black
andisort
which conflict in theirchecks.
Test Plan
and also
then