Skip to content

Commit 7f69bd1

Browse files
committed
Replace Black with Ruff
1 parent f5c1ee0 commit 7f69bd1

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/test_and_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
pip install tox
5656
5757
- name: Test with Tox
58-
run: tox -e ${{ matrix.python-version }},lint
58+
run: tox -e ${{ matrix.python-version }},lint,format
5959

6060
build-wheels:
6161
name: Build wheels

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727

2828
[project.optional-dependencies]
2929
examples = ["fysom", "pyserial"]
30-
tests = ["black", "ruff >= 0.3", "tox"]
30+
tests = ["ruff >= 0.3", "tox"]
3131

3232
[project.urls]
3333
"Bug Tracker" = "https://github.com/SkypLabs/python4yahdlc/issues"

tox.ini

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,25 @@ envlist =
1515
py313
1616
py314
1717
lint
18+
format
1819

1920
[testenv]
2021
description = "Run all tests"
2122
commands =
2223
{envpython} -m unittest discover
2324

25+
[testenv:format]
26+
description = "Run formatters"
27+
skip_install = true
28+
deps =
29+
ruff
30+
commands =
31+
ruff format examples tests
32+
2433
[testenv:lint]
2534
description = "Run linters"
2635
skip_install = true
2736
deps =
28-
black
2937
ruff
3038
commands =
31-
black examples tests
3239
ruff check examples tests

0 commit comments

Comments
 (0)