From f85a00d4483f4e55efb36adc9d7b79ec409f3539 Mon Sep 17 00:00:00 2001 From: willforde Date: Sun, 24 Jan 2021 18:55:29 +0000 Subject: [PATCH] test flake8 --- .travis.yml | 2 ++ tox.ini | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 889ed1e..e370b4f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,8 @@ jobs: env: TOXENV=py38 - python: "3.9" env: TOXENV=py39 + - name: Flake8 + env: TOXENV=flake8 install: - pip install coveralls diff --git a/tox.ini b/tox.ini index 43dc0c3..be2f62b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,16 @@ [tox] -envlist = py{27,36,37,38,39} +envlist = py{27,36,37,38,39},flake8 skip_missing_interpreters=true [testenv] extras = dev commands = pytest --cov + +[testenv:flake8] +basepython = python3 +skip_install = true +deps = + flake8 + pep8-naming +commands = + flake8 --max-line-length=120