Skip to content

Commit 16fc92b

Browse files
committed
Add black to CI.
1 parent 0fd1590 commit 16fc92b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- python-version: 3.9
2828
env:
2929
TOXENV: security
30+
- python-version: 3.9
31+
env:
32+
TOXENV: black
3033

3134
steps:
3235
- uses: actions/checkout@v2

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, pypy, py35, py36, py37, py38, pypy3, docs
7+
envlist = py27, pypy, py35, py36, py37, py38, pypy3, docs, security, flake8, pylint, black
88

99
[testenv]
1010
deps =
@@ -37,6 +37,12 @@ deps =
3737
commands =
3838
pylint conftest.py docs setup.py tests w3lib
3939

40+
[testenv:black]
41+
deps =
42+
black
43+
commands =
44+
black --check {posargs:conftest.py setup.py tests w3lib}
45+
4046
[docs]
4147
changedir = docs
4248
deps = -rdocs/requirements.txt

0 commit comments

Comments
 (0)