-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtox.ini
More file actions
35 lines (31 loc) · 711 Bytes
/
tox.ini
File metadata and controls
35 lines (31 loc) · 711 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
[tox]
envlist =
lint,
py{38, 39, 310, 311}
check
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310, mypy, check
3.11: py311
[testenv]
description = Run tests
deps =
poetry
[testenv:format]
description = Format code
commands =
poetry install --with dev
black .
isort .
[testenv:lint]
description = Check linters for failure
commands =
poetry install --with dev
black --check .
isort -c .
flake8 gitea_github_sync tests
mypy -p gitea_github_sync --install-types --non-interactive
mypy tests/ --install-types --non-interactive
pytest --cov-report term-missing --cov-report=xml:./coverage.xml --cov=gitea_github_sync tests/ {posargs}