-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
63 lines (53 loc) · 1009 Bytes
/
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
62
63
[tox]
isolated_build = true
envlist =
py{38, 37, 39}
[testenv]
whitelist_externals = poetry
deps =
flake8
flask
flask-sqlalchemy
flask-marshmallow
flask-migrate
flask-jwt-extended
flask-restful
sqlalchemy
marshmallow-sqlalchemy
python-dotenv
setuptools
flasgger
marshmallow-enum
requests
coverage
pytest
pytest-flask
pytest-runner
pytest-factoryboy
pytest-rerunfailures
factory_boy
virtualenv
black
setenv =
DATABASE_URI = sqlite:///:memory:
SECRET_KEY = testing
FLASK_ENV = development
commands =
python --version
poetry install -v
poetry run pytest tests/
poetry run flake8 scrabbleScoreboard
poetry run black scrabbleScoreboard --check
[testenv:test]
commands =
pytest test/ {posargs}
[testenv:lint]
skip_install = true
commands =
flake8 scrabbleScoreboard
black scrabbleScoreboard --diff --check
[flake8]
max-line-length = 120
ignore =
E122,
E128