-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
37 lines (26 loc) · 936 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
[tox]
envlist = py, check_codestyle, check_types
# required for PEP 517 (pyproject.toml-style) builds
isolated_build = true
[testenv:py]
# As of twisted 16.4, trial tries to import the tests as a package (previously
# it loaded the files explicitly), which means they need to be on the
# pythonpath. Our sdist doesn't include the 'tests' package, so normally it
# doesn't work within the tox virtualenv.
#
# As a workaround, we tell tox to do install with 'pip -e', which just
# creates a symlink to the project directory instead of unpacking the sdist.
usedevelop=true
extras = dev
commands =
python -m twisted.trial tests
[testenv:check_codestyle]
extras = dev
commands =
flake8 synapse_domain_rule_checker tests
black --check --diff synapse_domain_rule_checker tests
isort --check-only --diff synapse_domain_rule_checker tests
[testenv:check_types]
extras = dev
commands =
mypy synapse_domain_rule_checker tests