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

Ruff rules PT for pytest #2372

Merged
merged 2 commits into from
Feb 26, 2025
Merged

Ruff rules PT for pytest #2372

merged 2 commits into from
Feb 26, 2025

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Feb 20, 2025

% ruff check --select=PT --statistics # https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt

11	PT011	[ ] pytest-raises-too-broad
10	PT007	[*] pytest-parametrize-values-wrong-type
 8	PT018	[*] pytest-composite-assertion
 2	PT006	[*] pytest-parametrize-names-wrong-type
 2	PT014	[*] pytest-duplicate-parametrize-test-cases
 1	PT017	[ ] pytest-assert-in-except

Copy link

codecov bot commented Feb 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.16%. Comparing base (6165d6b) to head (168d850).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2372   +/-   ##
=======================================
  Coverage   99.16%   99.16%           
=======================================
  Files          40       40           
  Lines        3101     3101           
  Branches      680      680           
=======================================
  Hits         3075     3075           
  Misses         15       15           
  Partials       11       11           

Copy link
Collaborator

@staticdev staticdev left a comment

Choose a reason for hiding this comment

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

Thabks again @cclauss and @DanielNoord! LGTM

@staticdev staticdev added this pull request to the merge queue Feb 26, 2025
Merged via the queue into PyCQA:main with commit 790bb06 Feb 26, 2025
21 checks passed
@cclauss cclauss deleted the ruff-rules-PT branch February 26, 2025 18:06
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.

3 participants