[tox] envlist = black-format,pylint [testenv] changedir = test commands = python -m pytest {posargs} deps = pytest pytest-mock [testenv:pylint] skipdist = true skip_install = true deps = pylint astroid==2.4.2 commands = python -m pylint --rcfile=.pylintrc -j 0 src/notebooks [testenv:black-format] # Used during development (before committing) to format .py files. setenv = LC_ALL=C.UTF-8 LANG=C.UTF-8 deps = black commands = black -l 100 ./ [testenv:black-check] # Used by automated build steps to check that all files are properly formatted. setenv = LC_ALL=C.UTF-8 LANG=C.UTF-8 deps = black commands = black -l 100 --check ./