forked from pimutils/khal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (53 loc) · 1.01 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
[tox]
envlist = style,mypy,{py36,py37,py38}-tests,py39-tests-{pytz201702,pytz201610,pytz_latest}
skip_missing_interpreters = True
[testenv]
passenv =
LANG
CI
TRAVIS
TRAVIS_BRANCH
TRAVIS_BUILD_ID
TRAVIS_COMMIT
TRAVIS_JOB_ID
TRAVIS_JOB_NUMBER
TRAVIS_PULL_REQUEST
TRAVIS_REPO_SLUG
deps =
pytest
freezegun
vdirsyncer
python-dateutil
pytz201702: pytz==2017.2
pytz201610: pytz==2016.10
pytz_latest: pytz
commands =
py.test {posargs}
[gh-actions]
python =
3.9: style, mypy
[testenv:style]
skip_install=True
whitelist_externals = sh
deps =
flake8
flake8-bugbear
commands =
flake8 tests khal setup.py
sh -c '! grep -ri seperat */*'
[testenv:docs]
whitelist_externals = make
commands =
pip install -r doc/requirements.txt
make -C doc html
make -C doc man
[testenv:mypy]
skip_install=True
whitelist_externals = sh
deps = mypy
commands =
mypy --ignore-missing-imports khal
[flake8]
max-line-length = 100
ignore = E252,W504,E121,B008
exclude = .tox,examples,doc