Skip to content

Apply ruff/flake8-pytest-style rule PT012 #3267

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

Merged
merged 3 commits into from
Jul 17, 2025

Conversation

DimitriPapadopoulos
Copy link
Contributor

PT012 pytest.raises() block should contain a single simple statement

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.rst
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Jul 17, 2025
@DimitriPapadopoulos DimitriPapadopoulos force-pushed the PT012 branch 5 times, most recently from c59b6aa to 3eb9232 Compare July 17, 2025 21:03
PT012 `pytest.raises()` block should contain a single simple statement
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review July 17, 2025 21:21
@d-v-b d-v-b enabled auto-merge (squash) July 17, 2025 21:26
@d-v-b d-v-b merged commit 7a162bf into zarr-developers:main Jul 17, 2025
28 checks passed
Copy link

codecov bot commented Jul 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.58%. Comparing base (7c6160e) to head (71743ed).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3267      +/-   ##
==========================================
+ Coverage   59.56%   59.58%   +0.01%     
==========================================
  Files          78       78              
  Lines        8694     8694              
==========================================
+ Hits         5179     5180       +1     
+ Misses       3515     3514       -1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DimitriPapadopoulos DimitriPapadopoulos deleted the PT012 branch July 17, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs release notes Automatically applied to PRs which haven't added release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy