mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 17:26:30 +03:00
ci: replace black with ruff format
We use `ruff` anyway, so it is one less dependency.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"""
|
"""
|
||||||
Example echo bot without using hooks
|
Example echo bot without using hooks
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user