-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
46 lines (39 loc) · 769 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
[tox]
envlist = py{36,37,38,39},flake8,hacker,pylint,black,pytest
skipsdist = true
skip_missing_interpreters = true
[testenv]
deps:
matplotlib
numpy==1.15.0
pandas==0.20.3
commands=python3 dicemechanicsim.py
[testenv:flake8]
deps:
flake8
commands=/bin/bash -c 'flake8 *.py'
[testenv:hacker]
deps:
flake8
hacker
commands=/bin/bash -c 'flake8 *.py'
[testenv:pylint]
deps:
matplotlib
pandas
pylint
pytest
commands=/bin/bash -c 'pylint *.py'
[testenv:black]
deps:
black
commands=/bin/bash -c 'black -l 79 *.py'
[testenv:pytest]
deps:
pytest
commands=pytest
[flake8]
# H306: imports not in alphabetical order (time, os)
# H306 conflicts with pylint (wrong-import-order).
# W504 conflicts with PEP8.
ignore = H306, W504