-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
42 lines (37 loc) · 809 Bytes
/
tox.ini
File metadata and controls
42 lines (37 loc) · 809 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
[tox]
isolated_build = true
envlist = lint, pytest
[testenv]
setenv = PYTHONPATH = ""
[testenv:pytest]
changedir = tests
passenv = PULSE_PASSWORD
deps =
pytest
pytest-mock
commands = pytest
[testenv:test]
description = run tests via docker
allowlist_externals = docker
deps =
ruff
commands =
ruff format --check git_hg_sync/ tests/
ruff check git_hg_sync/ tests/
docker compose run --build --remove-orphans sync
docker compose down
[testenv:lint]
description = lint source code
deps =
ruff
pytest
commands =
ruff format --check git_hg_sync/ tests/
ruff check git_hg_sync/ tests/
[testenv:format]
description = format source code
deps =
ruff
commands =
ruff format git_hg_sync/ tests/
ruff check --fix-only --unsafe-fixes --exit-zero --show-fixes