-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
57 lines (35 loc) · 866 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[tox]
envlist = serve, py, check_codestyle, fix_codestyle, check_types, publish
# required for PEP 517 (pyproject.toml-style) builds
isolated_build = true
[testenv:py]
extras = dev
commands =
python -m twisted.trial {posargs:tests}
[testenv:serve]
extras = dev
commands =
python example_server.py {posargs:tests}
[testenv:check_codestyle]
extras = dev
commands =
black --check --diff synapse_super_invites tests
ruff --diff synapse_super_invites tests
[testenv:check_types]
extras = dev
commands =
mypy synapse_super_invites tests
[testenv:fix_codestyle]
extras = dev
commands =
black synapse_super_invites tests
ruff --fix synapse_super_invites tests
[testenv:publish]
extras = dev
allowlist_externals = rm
commands =
rm -rf dist/*
python -m build --sdist
python -m build --wheel
twine check dist/*
twine upload dist/*