Ruff
903 rules ruff@0.17.0
Complete effective rule inventory.
Rules
No enabled Ruff rules match this search.
-
PT021Use
yieldinstead ofrequest.addfinalizer -
PT022No teardown in fixture
{name}, usereturninstead ofyield -
PT023Use
@pytest.mark.{mark_name}{expected_parens}over@pytest.mark.{mark_name}{actual_parens} -
PT024pytest.mark.asynciois unnecessary for fixtures -
PT025pytest.mark.usefixtureshas no effect on fixtures -
PT026Useless
pytest.mark.usefixtureswithout parameters -
PT027Use
pytest.raisesinstead of unittest-style{assertion} -
PT028Test function parameter
{}has default argument -
PT029Set the expected warning in
pytest.warns() -
PT030pytest.warns({warning})is too broad, set thematchparameter or use a more specific warning -
PT031pytest.warns()block should contain a single simple statement -
PTH100os.path.abspath()should be replaced byPath.resolve() -
PTH101os.chmod()should be replaced byPath.chmod() -
PTH102os.mkdir()should be replaced byPath.mkdir() -
PTH103os.makedirs()should be replaced byPath.mkdir(parents=True) -
PTH104os.rename()should be replaced byPath.rename() -
PTH105os.replace()should be replaced byPath.replace() -
PTH106os.rmdir()should be replaced byPath.rmdir() -
PTH107os.remove()should be replaced byPath.unlink() -
PTH108os.unlink()should be replaced byPath.unlink() -
PTH109os.getcwd()should be replaced byPath.cwd() -
PTH110os.path.exists()should be replaced byPath.exists() -
PTH111os.path.expanduser()should be replaced byPath.expanduser() -
PTH112os.path.isdir()should be replaced byPath.is_dir() -
PTH113os.path.isfile()should be replaced byPath.is_file() -
PTH114os.path.islink()should be replaced byPath.is_symlink() -
PTH115os.readlink()should be replaced byPath.readlink() -
PTH116os.stat()should be replaced byPath.stat(),Path.owner(), orPath.group() -
PTH117os.path.isabs()should be replaced byPath.is_absolute() -
PTH118os.{module}.join()should be replaced byPathwith/operator -
PTH119os.path.basename()should be replaced byPath.name -
PTH120os.path.dirname()should be replaced byPath.parent