-
Notifications
You must be signed in to change notification settings - Fork 137
/
tox.ini
69 lines (60 loc) · 1.51 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
[tox]
minversion = 3.18.0
envlist = py{38,39,310,311,312}
skip_missing_interpreters = true
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
# Unit test and code coverage target
[testenv]
deps = -r requirements/requirements-tests.txt
allowlist_externals = pytest
commands = pytest -k "not test_integration" --cov-branch --cov=sec_edgar_downloader --cov-fail-under=100 --cov-report=term-missing --cov-report=xml
# Integration test and code coverage target
[testenv:integration]
deps = -r requirements/requirements-tests.txt
allowlist_externals = pytest
commands = pytest -k "test_integration"
[testenv:lint]
basepython = python3
skip_install = true
deps =
pre-commit
mypy
types-requests
commands =
mypy sec_edgar_downloader --ignore-missing-imports
pre-commit install
pre-commit run --all-files {posargs}
[testenv:docs]
basepython = python3
skip_install = true
changedir = docs
deps = -r requirements/requirements-docs.txt
allowlist_externals = make
commands =
doc8 index.rst ../README.rst --extension .rst --ignore D001
make html SPHINXOPTS="-W --keep-going"
[testenv:publish]
passenv = *
skip_install = true
deps =
-r requirements/requirements.txt
flit
allowlist_externals = flit
commands = flit publish --setup-py
[pytest]
addopts = -v
[isort]
line_length = 88
multi_line_output = 3
include_trailing_comma = true
[flake8]
max-line-length = 88
select = C,E,F,W,B,B9
per-file-ignores = sec_edgar_downloader/__init__.py:F401
ignore = E203,E501,W503