blob: 68a033c46321805fa5fb611260cd0cca4f7d4445 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[tox]
# Remember to run tox --skip-missing-interpreters
# If you don't want to install all these interpreters.
envlist =
# Fastest checks first
lint
typechecks
py27
py35
py36
py37
py38
pypy3.5
pypy3.6
[coverage:run]
source =
avro
scripts
omit =
.tox/*
[testenv]
deps =
coverage
python-snappy
zstandard
whitelist_externals =
cp
mkdir
commands_pre =
mkdir -p avro/test/interop {toxinidir}/../../build/interop/data
cp -r {toxinidir}/../../build/interop/data avro/test/interop
coverage run -pm avro.test.gen_interop_data avro/interop.avsc avro/test/interop/data/py.avro
cp -r avro/test/interop/data {toxinidir}/../../build/interop
commands =
coverage run -pm unittest discover --buffer --failfast
commands_post =
coverage combine
coverage report
[testenv:lint]
deps =
isort
pycodestyle
commands_pre =
commands =
isort --check-only
pycodestyle
commands_post =
[testenv:typechecks]
deps =
coverage
mypy
extras =
mypy
commands =
mypy
[tool:isort]
line_length = 150
known_third_party=zope
[pycodestyle]
exclude = .eggs,.tox,build
max-line-length = 150
statistics = True