From 7737771881fde49031d915e2a18507981c100ee5 Mon Sep 17 00:00:00 2001 From: erichesse Date: Thu, 28 Mar 2024 10:11:45 +0100 Subject: [PATCH] switch black and ruff order (#14) # PR Context # Added # Changes - switch order of black and ruff linter, as ruff often complains about issues, that are automatically fixed by black # Deprecated # Removed # Fixed # Security --- CHANGELOG.md | 1 + .../.pre-commit-config.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83d7046..a872dc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - improve prompt for project name - switch from poetry to pdm +- switch order of black and ruff linter, as ruff often complains about issues, that are automatically fixed by black ### Deprecated diff --git a/mex-{{ cookiecutter.project_name }}/.pre-commit-config.yaml b/mex-{{ cookiecutter.project_name }}/.pre-commit-config.yaml index ed2b9a4..33727bf 100644 --- a/mex-{{ cookiecutter.project_name }}/.pre-commit-config.yaml +++ b/mex-{{ cookiecutter.project_name }}/.pre-commit-config.yaml @@ -2,15 +2,15 @@ fail_fast: false default_language_version: python: python3.11 repos: + - repo: https://github.com/psf/black + rev: 24.3.0 + hooks: + - id: black - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - - repo: https://github.com/psf/black - rev: 24.3.0 - hooks: - - id: black - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 hooks: