forked from ets-berkeley-edu/damien
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 loc) · 1.29 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
54
55
56
57
58
59
60
61
# Tox (https://tox.readthedocs.io/) is a tool for running tests in multiple virtualenvs.
[tox]
envlist =
lint-py,
test,
lint-vue,
build-vue
skipsdist = True
[testenv]
allowlist_externals = *
[testenv:lint-vue]
commands = npm run lint-vue {posargs}
[testenv:lint-vue-fix]
commands = npm run lint-vue-fix {posargs}
[testenv:build-vue]
commands = npm run build-vue
[testenv:test]
# On Travis we access Postgres 12 at port 5433; pass on the PGPORT variable for test runs.
setenv =
PGPORT = {env:PGPORT:5432}
commands = pytest {posargs: -p no:warnings tests}
[testenv:lint-py]
# Bottom of file has Flake8 settings
commands = flake8 {posargs:application.py config consoler.py damien scripts tests mrsbaylock}
deps =
flake8==5.0.4
flake8-builtins>=1.5.3
flake8-colors>=0.1.9
flake8-commas>=2.1.0
flake8-docstrings>=1.6.0
flake8-import-order>=0.18.1
flake8-pytest>=1.4
flake8-quotes>=3.3.1
flake8-tidy-imports>=4.8.0
pep8-naming>=0.13.2
pydocstyle>=6.1.1
[flake8]
exclude =
*.pyc
.cache
.git
.tox
__pycache__
build
config/*-local.py
dist
node_modules
ignore = D101,D102,D103,D104,D105,D107,E731,Q003,W503,W605
import-order-style = google
max-complexity = 12
max-line-length = 150
show-source = True
statistics = True