mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
25 lines
807 B
INI
25 lines
807 B
INI
[tox]
|
|
envlist = py35,py36,py37,py38
|
|
|
|
[testenv]
|
|
deps =
|
|
-rrequirements.txt
|
|
-roptional-requirements.txt
|
|
-rdev-requirements.txt
|
|
commands =
|
|
# NOTE: you can run any command line tool here - not just tests
|
|
pytest {posargs}
|
|
|
|
# run with tox -e flake
|
|
[testenv:flake]
|
|
deps =
|
|
-rrequirements.txt
|
|
-roptional-requirements.txt
|
|
-rdev-requirements.txt
|
|
flake8
|
|
commands =
|
|
# stop the build if there are Python syntax errors or undefined names
|
|
flake8 . --count --select=E9,F63,F7,F82 --exclude telethon_examples/ --show-source --statistics
|
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
|
flake8 . --count --exit-zero --exclude telethon/tl/,telethon_examples/,telethon/errors/rpcerrorlist.py --max-complexity=10 --max-line-length=127 --statistics
|