diff --git a/pyproject.toml b/pyproject.toml index 56331dd..adedfd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,16 +72,16 @@ scripts.run = "python -m pytest {args:-vv}" [tool.hatch.envs.lint] detached = true -dependencies = ["ruff >= 0.1.4"] -scripts.check = ["ruff {args:.}", "ruff format --check --diff {args:.}"] -scripts.fmt = ["ruff --fix {args:.}", "ruff format {args:.}"] +dependencies = ["ruff == 0.2.*"] +scripts.check = ["ruff check {args:.}", "ruff format --check --diff {args:.}"] +scripts.fmt = ["ruff check --fix {args:.}", "ruff format {args:.}"] -[tool.ruff] +[tool.ruff.lint] select = ["F", "E", "W", "I", "S", "FBT", "B", "C4", "DTZ", "T10", "ISC", "RET", "SLF", "RUF"] ignore = ["S603", "S701", "B904", "ISC001"] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["holocron"] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "tests/*" = ["E501", "S101", "S607", "SLF001", "RUF001"]