-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (34 loc) · 796 Bytes
/
tox.ini
File metadata and controls
41 lines (34 loc) · 796 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
[tox]
envlist = py{311,312,313,314}, lint, check-format, typecheck
[testenv]
description = Run tests
deps =
pytest
pytest-asyncio
commands = pytest {posargs:tests/}
[testenv:test-cov]
description = Run tests with coverage
deps =
pytest
pytest-cov
commands = pytest --cov=commit_editor --cov-report=term-missing {posargs}
[testenv:lint]
description = Run code linter
deps = ruff
commands = ruff check .
[testenv:lint-fix]
description = Fix linting errors
deps = ruff
commands = ruff check --fix .
[testenv:check-format]
description = Check code formatting
deps = ruff
commands = ruff format --check --diff .
[testenv:format]
description = Format code
deps = ruff
commands = ruff format .
[testenv:typecheck]
description = Run type checker
deps = ty
commands = ty check src/