forked from snguyenthanh/better_profanity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (40 loc) · 1.02 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[tox]
envlist =
black
py35, py36, py37, py38, pypy3
skipsdist = True
skip_missing_interpreters = True
[default]
basepython = python3.8
setenv =
PY_MODULE=better_profanity
PYTHONPYCACHEPREFIX={envtmpdir}/pycache
[testenv]
parallel_show_output = True
whitelist_externals = make
/bin/bash
basepython =
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
pypy3: pypy3
# run the tests
# ... or run any other command line tool you need to run here
commands = python tests.py
[testenv:black]
description = run Black (linter)
basepython = {[default]basepython}
skip_install = True
deps =
black==19.10b0
setenv =
BLACK_LINT_ARGS=--check
commands =
black {env:BLACK_LINT_ARGS:} better_profanity benchmarking/scripts
[testenv:black-reformat]
description = {[testenv:black]description} and reformat
basepython = {[testenv:black]basepython}
skip_install = {[testenv:black]skip_install}
deps = {[testenv:black]deps}
commands = {[testenv:black]commands}