diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f10cfac5f1276..98dc671a8b35f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,7 @@ repos: rev: v0.0.253 hooks: - id: ruff + args: [--exit-non-zero-on-fix] - repo: https://github.com/jendrikseipp/vulture rev: 'v2.7' hooks: diff --git a/pyproject.toml b/pyproject.toml index 87424c3e1a763..16143706196ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -197,6 +197,8 @@ exclude = ''' line-length = 88 update-check = false target-version = "py38" +fix = true +unfixable = ["E711"] select = [ # pyflakes