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

Enforce ruff/flake8-pytest-style rules (PT) #4783

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Contributor

I haven't addressed PT012.

As for PT007, I have used the default style because it minimises changes to the current codebase:

[lint.flake8-pytest-style]
parametrize-values-type = "list"
parametrize-values-row-type = "tuple"

Pull Request Checklist

PT006 Wrong type passed to first argument of `@pytest.mark.parametrize`; expected `tuple`
PT007 Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`

I used the default style because it minimises changes to the current codebase:
	[lint.flake8-pytest-style]
	parametrize-values-type = "list"
	parametrize-values-row-type = "tuple"
PT011 `pytest.raises(...)` is too broad, set the `match` parameter or use a more specific exception
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.

1 participant