forked from quantopian/pyfolio
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
45 lines (40 loc) · 779 Bytes
/
tox.ini
File metadata and controls
45 lines (40 loc) · 779 Bytes
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
[tox]
envlist = py{38,39,310,311,312,313}-{linux,macos,windows}, lint, docs
skip_missing_interpreters = true
[testenv]
deps =
-r requirements-dev.txt
commands =
pytest tests/ -v --cov=pyfolio --cov-report=term --cov-report=html
platform =
linux: linux
macos: darwin
windows: win32
[testenv:lint]
deps =
flake8
black
isort
mypy
commands =
flake8 pyfolio
black --check pyfolio
isort --check-only pyfolio
mypy pyfolio
[testenv:docs]
deps =
sphinx
sphinx-rtd-theme
commands =
sphinx-build -b html docs docs/_build/html
[testenv:format]
deps =
black
isort
commands =
black pyfolio
isort pyfolio
[flake8]
max-line-length = 100
exclude = .git,__pycache__,docs,build,dist,.eggs,.tox
ignore = E203, W503