From ad032858f8de6a4b4f60efa0af764b877e05180c Mon Sep 17 00:00:00 2001 From: Nicolas Delaby Date: Tue, 7 Jan 2025 22:01:18 +0100 Subject: [PATCH] Replace `black` by `ruff format` --- .github/workflows/test_suite.yml | 2 +- .pre-commit-config.yaml | 16 ++-------------- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test_suite.yml b/.github/workflows/test_suite.yml index bc5b6e4..cf8c9d6 100644 --- a/.github/workflows/test_suite.yml +++ b/.github/workflows/test_suite.yml @@ -72,7 +72,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 - lint: + lint: # redundant with pre-commit-ci, but we want to make the linters a part of strict status checks. runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3fcf7b1..ca87e98 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,19 +18,7 @@ repos: - id: markdownlint - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: 'v0.8.6' + rev: "v0.8.6" hooks: - id: ruff - - repo: https://github.com/psf/black - rev: 24.10.0 - hooks: - - id: black - args: - - "--line-length" - - "119" - exclude: ^django_fsm_log/migrations|^docs/ - - repo: https://github.com/adamchainz/django-upgrade - rev: "1.22.2" - hooks: - - id: django-upgrade - args: [--target-version, "3.2"] + - id: ruff-format