This repository has been archived by the owner on Dec 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtox.ini
67 lines (60 loc) · 1.5 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
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
envlist=py27,py33,py34,py35,py2flake8,py3flake8,docs
[testenv]
deps=
coverage
wheel>=0.25.0
.[test]
commands=
# We use parallel mode and then combine here so that coverage.py will take
# the paths like .tox/py34/lib/python3.4/site-packages/astrodynamics/__init__.py
# and collapse them into astrodynamics/__init__.py.
coverage run --parallel-mode -m pytest {posargs}
coverage combine
coverage report -m
[testenv:py2flake8]
basepython=python2
deps=
flake8
flake8-coding
flake8-future-import
pep8-naming
commands=
flake8 .
[testenv:py3flake8]
basepython=python3
deps=
flake8
flake8-coding
flake8-future-import
pep8-naming
commands=
flake8 .
[testenv:docs]
basepython=python3
deps=
doc8
pyenchant
sphinx
sphinx_rtd_theme
sphinxcontrib-spelling
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b spelling docs docs/_build/html
doc8 docs/
[flake8]
# FI50: Require 'from __future__ import division'
# FI51: Require 'from __future__ import absolute_import'
# FI53: Require 'from __future__ import print_function'
# FI14,FI54: Make 'from __future__ import unicode_literals' optional
# FI15: Forbid 'from __future__ import generator_stop'
ignore=FI50,FI51,FI53,FI14,FI54,FI15
accept-encodings=utf-8
# Should aim for 80, but don't warn until 90.
max-line-length=90
min-version=2.7
require-code=True
[doc8]
ignore-path=docs/_build/,docs/modules/constants.rst
[pytest]
addopts=-r s