From 3ff567dfafbe14d8dafd94aef953f6048663868a Mon Sep 17 00:00:00 2001 From: Philipp A Date: Tue, 31 Oct 2023 10:14:31 +0100 Subject: [PATCH] Format with ruff (#100) --- .pre-commit-config.yaml | 8 ++------ .vscode/settings.json | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 297fd5b..45c291a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,16 +3,12 @@ repos: rev: v4.5.0 hooks: - id: trailing-whitespace - - repo: https://github.com/psf/black - rev: "23.10.1" - hooks: - - id: black - language_version: python3 - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.1.3 hooks: - id: ruff - args: ["--fix"] + args: [--fix, --exit-non-zero-on-fix] + - id: ruff-format - repo: https://github.com/pre-commit/mirrors-prettier rev: v3.0.3 hooks: diff --git a/.vscode/settings.json b/.vscode/settings.json index 886fa13..694223f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,10 +1,10 @@ { - "python.testing.pytestArgs": ["-v"], + "python.testing.pytestArgs": ["-v", "--color=yes"], "python.testing.unittestEnabled": false, "python.testing.pytestEnabled": true, "python.terminal.activateEnvironment": false, "[python]": { - "editor.defaultFormatter": "ms-python.black-formatter", + "editor.defaultFormatter": "charliermarsh.ruff", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll": true,