-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (48 loc) · 1.05 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
[tox]
requires =
tox>=4
env_list = py310, black, flake8
[testenv]
description = Run unit tests
passenv = AWS_PROFILE
deps =
pytest
pytest-sugar
coverage
pytest-cov
commands =
pip install -e . # Install SageWorks-Bridges locally
pytest -x --cov=sageworks_bridges {posargs:tests} # Run tests with coverage
[testenv:py310]
description = Run tests with Python 3.10
deps = {[testenv]deps}
commands = {[testenv]commands}
[testenv:py39]
description = Run tests with Python 3.9
basepython = python3.9
deps = {[testenv]deps}
commands = {[testenv]commands}
[testenv:flake8]
description = Run Flake8 linter
basepython = python3.10
skip_install = true
deps =
flake8
commands =
flake8 src/sageworks_bridges applications tests scripts
[testenv:black]
description = Run black python formatter
skip_install = true
deps =
black>=22.12
commands = black --line-length=120 {posargs:.}
[testenv:all]
description = Run all environments
deps =
tox>=4
commands =
tox -e black
tox -e flake8
tox -e py310
[flake8]
max-line-length = 120