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

Update to 2024 black style #396

Merged
merged 6 commits into from
Jan 28, 2024
Merged

Update to 2024 black style #396

merged 6 commits into from
Jan 28, 2024

Conversation

jayqi
Copy link
Member

@jayqi jayqi commented Jan 28, 2024

Black release notes: https://github.com/psf/black/releases/tag/24.1.0

Closes #395


Bonus: Swap back to official pytest-cases. Closes #368

Copy link
Contributor

github-actions bot commented Jan 28, 2024

@github-actions github-actions bot temporarily deployed to pull request January 28, 2024 01:54 Inactive
@@ -1,5 +1,5 @@
[flake8]
ignore = E731,E266,E501,C901,W503,E203
ignore = E731,E266,E501,C901,W503,E203,E704
Copy link
Member Author

@jayqi jayqi Jan 28, 2024

Choose a reason for hiding this comment

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

As noted here, flake8's E704 conflicts with the new concise dummy implementation style

@github-actions github-actions bot temporarily deployed to pull request January 28, 2024 02:00 Inactive
@github-actions github-actions bot temporarily deployed to pull request January 28, 2024 02:02 Inactive
@@ -1,6 +1,6 @@
-e .[all]

black[jupyter]
black[jupyter]>=24.1.0;python_version>='3.8'
Copy link
Member Author

@jayqi jayqi Jan 28, 2024

Choose a reason for hiding this comment

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

Adding a floor here so that dev environments are consistent.

black has dropped Python 3.7. People shouldn't be doing dev in a 3.7 environment anyways, so skipping black here seems like a good workaround for us to keep the 3.7 tests going for a while.

We should probably consider dropping 3.7 support soon though.

@github-actions github-actions bot temporarily deployed to pull request January 28, 2024 02:16 Inactive
@github-actions github-actions bot temporarily deployed to pull request January 28, 2024 02:40 Inactive
pytest
# pytest-cases
git+https://github.com/jayqi/python-pytest-cases@packaging-version
pytest<8
Copy link
Member Author

@jayqi jayqi Jan 28, 2024

Choose a reason for hiding this comment

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

pytest v8.0.0 literally just released hours ago, and there's some arcane looking error that is probably a pytest-cases incompatibility.

I opened an issue: smarie/python-pytest-cases#330

Copy link

codecov bot commented Jan 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9936a10) 93.8% compared to head (f700419) 94.3%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #396     +/-   ##
========================================
+ Coverage    93.8%   94.3%   +0.4%     
========================================
  Files          22      22             
  Lines        1570    1560     -10     
========================================
- Hits         1474    1472      -2     
+ Misses         96      88      -8     
Files Coverage Δ
cloudpathlib/cloudpath.py 93.4% <100.0%> (+1.1%) ⬆️

@jayqi jayqi marked this pull request as ready for review January 28, 2024 02:47
@jayqi jayqi requested a review from pjbull January 28, 2024 02:47
Copy link
Member

@pjbull pjbull left a comment

Choose a reason for hiding this comment

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

Thanks!

@jayqi jayqi merged commit 991704a into master Jan 28, 2024
29 checks passed
@jayqi jayqi deleted the 395-black-2024 branch January 28, 2024 04:19
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.

Failed build: black 2024 code style changes Update pytest-cases dependency to main package
2 participants