tox.ini 520 Bytes
Newer Older
Gmodena's avatar
Gmodena committed
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
[tox]
requires = tox-conda
envlist = flake8, mypy, pytest
skipsdist  = True

[testenv]
conda_deps=
    python=3.7
    openjdk 
    pyspark==2.4.5
deps=
   -rrequirements-test.txt
setenv =
    PYTHONPATH = spark

[flake8]
max-complexity = 10
max-line-length = 127 
show-source = true
statistics = true
select = E9,F63,F7,F82

[mypy]
python_version = 3.7

[testenv:flake8]
commands= 
    flake8 spark

[testenv:pytest]
commands=
    python -m pytest --cov spark tests/

[testenv:mypy]
commands= 
    python -m mypy spark