Skip to content
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

style: update to first non-pre-release black! #1267

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

henryiii
Copy link
Member

The exponent change is really nice, it also seems a bit more compact for really long asserts and if's.

@codecov
Copy link

codecov bot commented Jan 29, 2022

Codecov Report

Merging #1267 (f9a4edf) into main (ab65e20) will increase coverage by 0.24%.
The diff coverage is 60.57%.

Impacted Files Coverage Δ
src/awkward/_v2/__init__.py 100.00% <ø> (ø)
src/awkward/_v2/_connect/numpy.py 58.63% <0.00%> (+0.17%) ⬆️
src/awkward/_v2/behaviors/string.py 71.42% <ø> (+16.88%) ⬆️
src/awkward/_v2/contents/__init__.py 100.00% <ø> (ø)
src/awkward/_v2/contents/emptyarray.py 69.36% <0.00%> (-0.18%) ⬇️
src/awkward/_v2/contents/indexedarray.py 60.64% <0.00%> (-0.10%) ⬇️
src/awkward/_v2/contents/indexedoptionarray.py 85.40% <0.00%> (+0.15%) ⬆️
src/awkward/_v2/contents/listarray.py 87.95% <0.00%> (+0.21%) ⬆️
src/awkward/_v2/contents/listoffsetarray.py 79.68% <0.00%> (+0.12%) ⬆️
src/awkward/_v2/contents/regulararray.py 82.85% <0.00%> (+0.18%) ⬆️
... and 146 more

Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've always thought that ** should be an exception to the "spaces around binary operators" rule.

All the other changes are more compact and look more readable, too. This is definitely an improvement.

It touches a lot of files, 35, but only 8 of them are not tests. Tests generally don't overlap people's active work—I don't think that merging this would be disruptive.

@jpivarski
Copy link
Member

(I think it's increasing test coverage because the more compact representation means fewer lines of code to test!)

@jpivarski jpivarski merged commit ea29e66 into scikit-hep:main Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants