ci: replace black with ruff format

We use `ruff` anyway, so it is one less dependency.
This commit is contained in:
link2xt
2024-04-29 21:18:57 +00:00
committed by holger krekel
parent 5e0f5ec390
commit 299d994d4b
5 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,7 @@
it will echo back any text send to it, it also will print to console all Delta Chat core events. it will echo back any text send to it, it also will print to console all Delta Chat core events.
Pass --help to the CLI to see available options. Pass --help to the CLI to see available options.
""" """
from deltachat_rpc_client import events, run_bot_cli from deltachat_rpc_client import events, run_bot_cli
hooks = events.HookCollection() hooks = events.HookCollection()

View File

@@ -3,6 +3,7 @@
it will echo back any message that has non-empty text and also supports the /help command. it will echo back any message that has non-empty text and also supports the /help command.
""" """
import logging import logging
import sys import sys
from threading import Thread from threading import Thread

View File

@@ -2,6 +2,7 @@
""" """
Example echo bot without using hooks Example echo bot without using hooks
""" """
import logging import logging
import sys import sys

View File

@@ -22,9 +22,8 @@ skipsdist = True
skip_install = True skip_install = True
deps = deps =
ruff ruff
black
commands = commands =
black --quiet --check --diff src/ examples/ tests/ ruff format --quiet --diff src/ examples/ tests/
ruff check src/ examples/ tests/ ruff check src/ examples/ tests/
[pytest] [pytest]

View File

@@ -41,12 +41,11 @@ skipsdist = True
skip_install = True skip_install = True
deps = deps =
ruff ruff
black
# pygments required by rst-lint # pygments required by rst-lint
pygments pygments
restructuredtext_lint restructuredtext_lint
commands = commands =
black --quiet --check --diff setup.py src/deltachat examples/ tests/ ruff format --quiet --diff setup.py src/deltachat examples/ tests/
ruff check src/deltachat tests/ examples/ ruff check src/deltachat tests/ examples/
rst-lint --encoding 'utf-8' README.rst rst-lint --encoding 'utf-8' README.rst