From 9054d51e1337934a1257d795f784027dffddd1b7 Mon Sep 17 00:00:00 2001 From: Tuomas Haapala Date: Thu, 31 Oct 2024 16:33:38 +0200 Subject: [PATCH 1/2] chore: update README about Ruff --- README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9cb5d4d2..0390975c 100644 --- a/README.md +++ b/README.md @@ -157,17 +157,14 @@ This repository contains `requirements*.in` and corresponding `requirements*.txt ## Code format -This project uses -[`black`](https://github.com/ambv/black), -[`flake8`](https://gitlab.com/pycqa/flake8) and -[`isort`](https://github.com/pycqa/isort) -for code formatting and quality checking. Project follows the basic -black config, without any modifications. +This project uses [Ruff](https://docs.astral.sh/ruff/) for code formatting and quality checking. -Basic `black` commands: +Basic `ruff` commands: -* To let `black` do its magic: `black .` -* To see which files `black` would change: `black --check .` +* lint: `ruff check` +* apply safe lint fixes: `ruff check --fix` +* check formatting: `ruff format --check` +* format: `ruff format` [`pre-commit`](https://pre-commit.com/) can be used to install and run all the formatting tools as git hooks automatically before a From e43278aade379b75127da41ba65088d83096245d Mon Sep 17 00:00:00 2001 From: Tuomas Haapala Date: Thu, 31 Oct 2024 16:42:34 +0200 Subject: [PATCH 2/2] chore: add Ruff commit to .git-blame-ignore-revs --- .git-blame-ignore-revs | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..a79cc937 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,2 @@ +# style: run Ruff format, apply lint fixes and add noqas +7184905558c28ca84a0bd8b6b71e10fa5523ea08