| # 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 |
| ignore = E101,E111,E114,E121,E122,E124,E125,E126,E127,E128,E129,E201,E202,E203,E222,E226,E225,E231,E241,E251,E261,E262,E265,E266,E301,E302,E303,E305,E306,E402,E501,E701,E703,E704,E711,W191,W291,W292,W293,W391,W503,W504,W601 |
| max-line-length = 150 |
| statistics = True |