-
Notifications
You must be signed in to change notification settings - Fork 26
/
tox.ini
42 lines (37 loc) · 878 Bytes
/
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
[tox]
envlist = py3{10,11,12},format,lint
isolated_build = True
[testenv]
passenv =
HOME
sitepackages = False
skip_install = True
allowlist_externals =
poetry
commands_pre =
pip install --upgrade pip
poetry install --all-extras
commands =
poetry run coverage erase
poetry run coverage run -m pytest -vv tests {posargs}
poetry run coverage report -m
poetry run coverage xml
poetry run coverage html
[testenv:format]
commands =
poetry run python -m black --check tests/ fedbadges/
[testenv:lint]
commands =
poetry run ruff check tests/ fedbadges/
[flake8]
max-line-length = 100
# [testenv:docs]
# changedir = docs
# allowlist_externals =
# {[testenv]allowlist_externals}
# mkdir
# rm
# commands=
# mkdir -p _static
# rm -rf _build
# poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html