forked from AnalogJ/lexicon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (35 loc) · 1.11 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = basic, full, lint
skipsdist = True
skip_missing_interpreters = True
# Full env will run every test available for all providers.
[testenv]
passenv = CIRCLE_BRANCH
commands =
tldextract --update
py.test tests --cov=lexicon --numprocesses=auto --dist=loadfile
coveralls
deps =
-r requirements.txt
-r test-requirements.txt
-r optional-requirements.txt
# Basic env ensures that providers which require additional libraries do not break the CLI when not installed.
[testenv:basic]
passenv = CIRCLE_BRANCH
commands =
lexicon --version
deps =
-r requirements.txt
# Lint env will check for code quality and errors, and fails if it does not match the minimal requirements.
[testenv:lint]
commands =
python tests/pylint_quality_gate.py
deps =
-r requirements.txt
-r test-requirements.txt
-r optional-requirements.txt
pylint==2.1.1