File: tox.ini

package info (click to toggle)
matrix-synapse-ldap3 0.2.2%2Bgit20221102%2B258473620416-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 184 kB
  • sloc: python: 977; sh: 10; makefile: 5
file content (54 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download
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
[tox]
envlist = packaging, pep8, py, check_codestyle, check_types

# required for PEP 517 (pyproject.toml-style) builds
isolated_build = true

[testenv]
deps =
    Twisted>=15.1
    ldaptor
    matrix-synapse
    coverage
    ldap3>=2.8
setenv =
    PYTHONDONTWRITEBYTECODE = no_byte_code
    PYTHONPATH = .
commands =
    {envbindir}/coverage run {envbindir}/trial tests

[testenv:packaging]
deps =
    check-manifest
commands =
    check-manifest

# This uploads any coverage information that has been produced to codecov. This
# is really only useful for CI.
[testenv:codecov]
passenv = CODECOV_TOKEN
skip_install = True
deps =
    coverage
    codecov
commands =
    coverage xml
    codecov -X gcov

[testenv:check_codestyle]

extras = dev

commands =
  flake8 ldap_auth_provider.py tests
  black --check --diff ldap_auth_provider.py tests
  isort --check-only --diff ldap_auth_provider.py tests

[testenv:check_types]

extras = dev

commands =
  # mypy ldap_auth_provider.py tests
  # tests currently do not pass
  mypy ldap_auth_provider.py