Open dhruvmanila opened 10 months ago
And the other way around, some rules never make sense for pytest, and should always be disabled:
[tool.ruff.lint.per-file-ignores]
'tests/**/*.py' = [
'INP001', # Test directories are not namespace packages
'S101', # Pytest tests should use `assert`
'RUF018', # Assignment expressions in assert are fine here
]
For additional context, refer to https://github.com/astral-sh/ruff/issues/8145#issuecomment-1817657808 and the following comments.