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
|