diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-04-16 15:04:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-16 15:04:22 -0700 |
commit | 05548a373f780c512bc7f7a12a18173d19437b12 (patch) | |
tree | 18706364ea48098db554f975ca1af3302afd97e2 /tox.ini | |
parent | ae173f0f5126dcd8db9f43d6fdb37439873e9233 (diff) | |
download | redis-py-05548a373f780c512bc7f7a12a18173d19437b12.tar.gz |
Switch to flake8 for static code analysis (#1328)
flake8 catches a wider net of mistakes than pycodestyle and is more
commonly used by the larger community. For example, it catches unused
imports, a few of which existed. These have since been removed.
Two "noqa" comments were added. One ignores the _compat.py file as it
has a large amount of Python version specific code. The second is in
utils.py which intentionally does not use an import.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ [tox] minversion = 2.4 -envlist = {py27,py35,py36,py37,py38,py,py3}-{plain,hiredis}, pycodestyle +envlist = {py27,py35,py36,py37,py38,py,py3}-{plain,hiredis}, flake8 [testenv] deps = @@ -11,9 +11,9 @@ extras = hiredis: hiredis commands = {envpython} -b -m coverage run -m pytest -W always {posargs} -[testenv:pycodestyle] +[testenv:flake8] basepython = python3.6 -deps = pycodestyle -commands = pycodestyle +deps = flake8 +commands = flake8 skipsdist = true skip_install = true |