forked from arrow-py/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (47 loc) · 1.1 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
[tox]
envlist = py{py3,27,35,36,37,38,39},lint,docs
skip_missing_interpreters = true
[gh-actions]
python =
pypy3: pypy3
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
# Configure testing environments
[testenv]
deps = -rrequirements.txt
whitelist_externals = pytest
commands = pytest
[testenv:lint]
basepython = python3
skip_install = true
deps = pre-commit
commands =
pre-commit install
pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
basepython = python3
skip_install = true
changedir = docs
deps =
doc8
sphinx
python-dateutil
whitelist_externals = make
commands =
doc8 index.rst ../README.rst --extension .rst --ignore D001
make html SPHINXOPTS="-W --keep-going"
# Configure settings for pytest, isort, and flake8
[pytest]
addopts = -v --cov-branch --cov=arrow tests --cov-fail-under=100 --cov-report=term-missing
[isort]
line_length = 88
multi_line_output = 3
include_trailing_comma = true
known_third_party = dateutil,pytest,pytz,setuptools,simplejson
[flake8]
per-file-ignores = arrow/__init__.py:F401
ignore = E203,E501,W503