File: tox.ini

package info (click to toggle)
python-confluent-kafka 2.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,660 kB
  • sloc: python: 30,428; ansic: 9,487; sh: 1,477; makefile: 192
file content (35 lines) | stat: -rw-r--r-- 1,203 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
[tox]
envlist = flake8,py37,py38,py39,py310,py311,py312,py313

[testenv]
passenv =
    #http://tox.readthedocs.io/en/latest/config.html#confval-passenv=SPACE-SEPARATED-GLOBNAMES
    *
commands =
    # Install main package and all sub-packages
    pip install -r requirements/requirements-tests-install.txt
    pip install .
    # Early verification that module is loadable
    python -c 'import confluent_kafka ; print(confluent_kafka.version())'
    # Run tests (large timeout to allow docker image downloads)
    python -m pytest --timeout 600 --ignore=tmp-build {posargs}
    # See tests/README.md for additional notes on testing
    #python tests/integration/integration_test.py

[testenv:flake8]
deps = flake8
commands = flake8

[pytest]
python_files = test_*
testpaths = tests
norecursedirs = tests/integration/*/java

[flake8]
exclude = venv*,.venv*,env,.env,.tox,.toxenv,.git,build,docs,tools,tmp-build,*_pb2.py,*tmp-KafkaCluster/*
max-line-length = 119
accept-encodings = utf-8
per-file-ignores =
    ./src/confluent_kafka/schema_registry/_sync/avro.py: E303
    ./src/confluent_kafka/schema_registry/_sync/json_schema.py: E303
    ./src/confluent_kafka/schema_registry/_sync/protobuf.py: E303