From 77c90583acd63dffc884b855830c1b38b9be9eb1 Mon Sep 17 00:00:00 2001 From: texhnolyze Date: Thu, 24 Oct 2024 10:26:41 +0200 Subject: [PATCH] chore(pre-commit): upgrade ruff linting/formatting --- .pre-commit-config.yaml | 7 ++----- pyproject.toml | 9 ++++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 561c3bd..097e8ec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.7.0 hooks: - id: ruff args: - "--fix" - "--exit-non-zero-on-fix" -- repo: https://github.com/psf/black - rev: 23.11.0 - hooks: - - id: black + - id: ruff-format - repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 hooks: diff --git a/pyproject.toml b/pyproject.toml index 3ed6ff7..572e430 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,10 @@ -[tool.black] -line-length = 120 - [tool.ruff] line-length = 120 - # Never enforce `E501` (line length violations), as black takes care of this. -ignore = ["E501"] + +[tool.ruff.lint] # Additionally enable the following rules +# - pyflakes (`F`) +# - pycodestyle errors (`E`) # - pycodestyle warnings (`W`) # - flake8-bugbear warnings (`B`) # - isort import sorting (`I`)