-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
62 lines (55 loc) · 1.19 KB
/
tox.ini
File metadata and controls
62 lines (55 loc) · 1.19 KB
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
[tox]
envlist =
py310
py311
py312
py313
mypy
muff-lint
muff-format
pydoclint
pre-commit
[gh-actions]
python =
3.10: py310, mypy, muff-lint, muff-format, pydoclint, pre-commit
3.11: py311, mypy, muff-lint, muff-format, pydoclint, pre-commit
3.12: py312, mypy, muff-lint, muff-format, pydoclint, pre-commit
3.13: py313, mypy, muff-lint, muff-format, pydoclint, pre-commit
[testenv]
deps =
pytest
commands =
pytest --tb=long
[testenv:mypy]
deps =
mypy
commands =
mypy format_docstring/
[testenv:muff-lint]
deps =
muff
skip_install = true
commands =
muff check --fix --config=muff.toml format_docstring tests
[testenv:muff-format]
deps =
muff
skip_install = true
commands =
# use the '--diff' flag to avoid accidentally formatting code
muff format --diff --config=muff.toml format_docstring tests
[testenv:pydoclint]
skip_install = true
deps =
pydoclint
commands =
pydoclint --check-arg-defaults=True ./format_docstring
[testenv:pre-commit]
skip_install = true
deps =
pre-commit
set_env =
# Skipping auto-formatter here to avoid accidentally formatting code
SKIP = muff
commands =
pre-commit run -a