-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
72 lines (63 loc) · 2.04 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
68
69
70
71
72
[tox]
project = tfremote
;Determining the environment list that tox is to operate on happens in this order
envlist = py36, py38, py39
;Define the minimal tox version required to run
minversion = 3.4
;Flag indicating to perform the packaging operation or not.
;Set it to true when using tox for an application, instead of a library
skipsdist=True
#-------------
;Settings defined in the top-level testenv section are automatically inherited by individual
;environments unless overridden.
#-------------
[testenv:tests]
description = run the tests with pytest under {basepython}
deps = -rrequirements-dev.txt
commands = python3 -m pytest
[testenv:docs]
changedir=docs/source
deps = -rrequirements-dev.txt
;deps =
; sphinx
; sphinx_rtd_theme
; hcl
commands =
; -W: turn warnings into errors
; -b: builder to use (default: html)
; -d path for the cached environment and doctree files (default: OUTPUTDIR/.doctrees)
; sphinx output is redirected to the virtualenv env temp dir to prevent sphinx from caching results between runs.
sphinx-build -b html -c ./ -d ..{envtmpdir}/doctrees . ../html
;[testenv:lint]
;skip_install = true
;commands =
; black --check --diff src tests setup.py
; python setup.py check -r -s -m
;deps =
; flake8
; black
;[testenv:flake8]
;max-line-length = 99
;; https://www.flake8rules.com/
;ignore = E203, W503, C901, E402, B011
;exclude = .tox,.git,__pycache__,docs/source/conf.py,build,dist,tests/fixtures/*,*.pyc,*.egg-info,./.cache,./.eggs
;; controls what style the plugin follows (cryptography is the default).
;import-order-style = google
[pytest]
; Set the directory basename patterns to avoid when recursing for test discovery.
norecursedirs = .* virtualenv_run docs build venv env
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure --color=always
;;sphinx-quickstart
;;sphinx-apidoc -f -o source ../src/
;;make html
[gh-actions]
python =
3.6: py36
3.8: py38, mypy
3.9: py39
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux