File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ classifiers = [
2727
2828[project .optional-dependencies ]
2929examples = [" 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"
Original file line number Diff line number Diff line change @@ -15,18 +15,25 @@ envlist =
1515 py313
1616 py314
1717 lint
18+ format
1819
1920[testenv]
2021description = " Run all tests"
2122commands =
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]
2534description = " Run linters"
2635skip_install = true
2736deps =
28- black
2937 ruff
3038commands =
31- black examples tests
3239 ruff check examples tests
You can’t perform that action at this time.
0 commit comments