chore: update pre-commit, ruff

This commit is contained in:
Bingsu
2023-06-15 16:33:02 +09:00
parent 764242520c
commit 567e0c1eec
2 changed files with 3 additions and 3 deletions

View File

@@ -12,8 +12,8 @@ repos:
hooks:
- id: isort
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.270"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.272"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

View File

@@ -16,7 +16,7 @@ profile = "black"
known_first_party = ["launch", "modules"]
[tool.ruff]
select = ["A", "B", "C4", "E", "F", "I001", "ISC", "N", "PIE", "PT", "RET", "SIM", "UP", "W"]
select = ["A", "B", "C4", "C90", "COM", "E", "EM", "F", "FA", "I001", "ISC", "N", "PIE", "PT", "RET", "RUF", "SIM", "UP", "W"]
ignore = ["B008", "B905", "E501", "F401", "UP007"]
[tool.ruff.isort]