diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-12-07 21:33:43 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | ef39cc26c4df9801d85713db75ba7ba1355cdefc (patch) | |
tree | d14d28891474525b4469c49fdaa01ba5b92e5748 | |
parent | 7d32ae52ce18b2dbf444348d8403bfd7b919f94a (diff) | |
download | wee-slack-ef39cc26c4df9801d85713db75ba7ba1355cdefc.tar.gz |
Switch to ruff in CI and docs
-rw-r--r-- | .github/workflows/wee-slack.yml | 4 | ||||
-rw-r--r-- | docs/contributing.md | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/wee-slack.yml b/.github/workflows/wee-slack.yml index 9baf5ba..c017175 100644 --- a/.github/workflows/wee-slack.yml +++ b/.github/workflows/wee-slack.yml @@ -24,9 +24,9 @@ jobs: - run: poetry install - - run: poetry run isort --check main.py slack tests typings + - run: poetry run ruff format --check --target-version py37 - - run: poetry run black --check . + - run: poetry run ruff check --target-version py37 main.py slack tests typings - run: poetry run pyright --pythonversion 3.7 main.py slack tests typings diff --git a/docs/contributing.md b/docs/contributing.md index f9dfc0e..a9f4827 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -26,11 +26,11 @@ activated, and that you have the latest development dependencies installed. ## Formatting -The code is formatted with [`black`](https://black.readthedocs.io/). To format +The code is formatted with [`ruff`](https://docs.astral.sh/ruff/). To format all the files, first navigate to the project root, and then execute: ``` -$ black . +$ ruff format --target-version py37 ``` ## Linting |