Skip to content

Commit 43b71af

Browse files
icywang86ruiWang Napieralski
and
Wang Napieralski
authored
add tox.ini with linting setup (aws#2594)
Co-authored-by: Wang Napieralski <wru@88665a0d5290.ant.amazon.com>
1 parent 9dd8837 commit 43b71af

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

tox.ini

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Tox (http://tox.testrun.org/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
6+
[tox]
7+
envlist = black-format,black-check,black-nb-check,black-nb-format
8+
skipsdist=True
9+
10+
[testenv:black-format]
11+
setenv =
12+
LC_ALL=C.UTF-8
13+
LANG=C.UTF-8
14+
deps = black
15+
commands =
16+
black -l 100 ./
17+
18+
[testenv:black-check]
19+
setenv =
20+
LC_ALL=C.UTF-8
21+
LANG=C.UTF-8
22+
deps = black
23+
commands =
24+
black -l 100 --check ./
25+
26+
[testenv:black-nb-check]
27+
deps = black-nb
28+
commands =
29+
black-nb -l 100 --check ./
30+
31+
[testenv:black-nb-format]
32+
deps = black-nb
33+
commands =
34+
black-nb -l 100 ./

0 commit comments

Comments
 (0)