From c19802e4d8effa3d3d970f89bd497f46d907d23c Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 7 Apr 2025 18:24:30 +0200 Subject: [PATCH] Configure ruff as an auto-formatter --- .pre-commit-config.yaml | 5 +---- docs/contributing.rst | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6beb3a4..d19e2a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,10 +8,6 @@ repos: - id: check-toml - id: check-added-large-files - id: debug-statements - - repo: https://github.com/psf/black - rev: "24.2.0" - hooks: - - id: black - repo: https://github.com/pre-commit/mirrors-mypy rev: "v1.8.0" hooks: @@ -26,6 +22,7 @@ repos: hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] + - id: ruff-format - repo: local hooks: - id: typos-syncroniz diff --git a/docs/contributing.rst b/docs/contributing.rst index 33a4876..ce7d97c 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -81,7 +81,7 @@ virtualenv_ and run this inside of it:: # Install development dependencies, including: # - vdirsyncer from the repo into the virtualenv - # - stylecheckers (ruff) and code formatters (black) + # - style checks and formatting (ruff) make install-dev # Install git commit hook for some extra linting and checking