forked from openedx/xblock-submit-and-compare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (46 loc) · 1.08 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
[tox]
envlist = csslint,eslint,pycodestyle,pylint,py{38, 311}-django{42}
[testenv]
deps =
django42: Django>=4.2,<4.3
-rrequirements/test.txt
commands =
coverage run manage.py test
coverage report
coverage html
[testenv:clean]
commands =
coverage erase
deps =
-rrequirements/test.txt
skip_install = True
[testenv:csslint]
allowlist_externals = {toxinidir}/node_modules/csslint/dist/cli.js
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
{toxinidir}/node_modules/csslint/dist/cli.js submit_and_compare/public/
deps =
skip_install = True
[testenv:eslint]
allowlist_externals = {toxinidir}/node_modules/eslint/bin/eslint.js
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
commands =
{toxinidir}/node_modules/eslint/bin/eslint.js --fix submit_and_compare/public/view.js
deps =
skip_install = True
[testenv:quality]
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
deps =
-rrequirements/quality.txt
commands =
pycodestyle --max-line-length=120 submit_and_compare/
pylint --rcfile=pylintrc submit_and_compare/