github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/pfs_middleware/tox.ini (about) 1 [tox] 2 envlist = {py27,py36,py37}-{release,master},py27-minver,lint 3 4 [testenv] 5 usedevelop = True 6 # minver tests with the earliest version of Swift we support. 7 deps = 8 lint: flake8 9 !lint: -r{toxinidir}/test-requirements.txt 10 release: git+https://github.com/NVIDIA/swift.git@ss-release-2.26.0.11 11 minver: http://tarballs.openstack.org/swift/swift-2.9.0.tar.gz 12 master: http://tarballs.openstack.org/swift/swift-master.tar.gz 13 commands = python -m unittest discover 14 15 [testenv:lint] 16 usedevelop = False 17 commands = flake8 {posargs:pfs_middleware tests setup.py} 18 19 [flake8] 20 # flake8 has opinions with which we agree, for the most part. However, 21 # flake8 has a plugin mechanism by which other people can add their 22 # opinions; we do not necessarily like those opinions. In particular, 23 # "hacking" adds many different checks, a significant number of which 24 # are completely bogus. Fortunately, they have a convention: hacking 25 # checks start with "H", so that's what we ignore. 26 ignore = H, 27 # Both stupid binary opeator things 28 W503, 29 W504 30 exclude = .venv,.tox,dist,*egg 31 show-source = true