You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmmm...it doesn't seem like there are many places where were are currently using complex parameterization in pytest, are you able to point to the benefits for pins (or maybe it is just to make sure it stays in compliance)?
Most of the others just keep consistency throughout a project in terms of formatting.
As you can probably tell by now, my approach with ruff is quite aggressive, anything that creates consistency makes me happy, especially when the rules have an autofix available. But that approach is not for everyone, I defer to your choice 🙇
https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
There are many ways to do the same thing in
pytest
, and I have found these rules to be helpful for consistency across a codebase.There are a few that are arguably too opinionated, in particular
PT003
,PT004
, andPT013
.PT006
can be configured with:for consistency with the existing codebase.
The text was updated successfully, but these errors were encountered: