| ################################################################################ |
| # 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 |
| # |
| # http://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] |
| # tox (https://tox.readthedocs.io/) is a tool for running tests |
| # in multiple virtualenvs. This configuration file will run the |
| # test suite on all supported python versions. |
| # new environments will be excluded by default unless explicitly added to envlist. |
| envlist = py35, py36, py37 |
| |
| [testenv] |
| whitelist_externals= |
| /bin/bash |
| deps = |
| pytest |
| grpcio>=1.17.0,<=1.26.0 |
| grpcio-tools>=1.3.5,<=1.14.2 |
| commands = |
| python --version |
| pytest --durations=0 |
| bash ./dev/run_pip_test.sh |
| # Replace the default installation command with a custom retry installation script, because on high-speed |
| # networks, downloading a package may raise a ConnectionResetError: [Errno 104] Peer reset connection. |
| install_command = {toxinidir}/dev/install_command.sh {opts} {packages} |
| |
| [flake8] |
| # We follow PEP 8 (https://www.python.org/dev/peps/pep-0008/) with one exception: lines can be |
| # up to 100 characters in length, not 79. |
| ignore=E226,E241,E305,E402,E722,E731,E741,W503,W504 |
| max-line-length=100 |
| exclude=.tox/*,dev/*,lib/*,target/*,build/*,dist/*,pyflink/shell.py,.eggs/*,pyflink/fn_execution/tests/process_mode_test_data.py,pyflink/fn_execution/*_pb2.py |