From dbdbc1d8db4a2e616f9d94e45f2e8c4919a2ecaf Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 22 Jan 2016 19:13:23 +0100 Subject: [PATCH] flake8: Add flake8-deprecated plugin. Warns about deprecated method calls. https://pypi.python.org/pypi/flake8-deprecated/ --- setup.cfg | 4 +++- tox.ini | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index c5032b3d6..50489de2b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,12 +21,14 @@ exclude = .venv,.hypothesis,.git,__pycache__,resources.py # P101: format string does contain unindexed parameters # P102: docstring does contain unindexed parameters # P103: other string does contain unindexed parameters +# D001: found assert_ replace it with assertTrue ignore = E128,E226,E265,E501,E402,E266, F401, N802, L101,L102,L103,L201,L202,L203,L204,L207, - P101,P102,P103 + P101,P102,P103, + D001 max-complexity = 12 putty-ignore = /# pylint: disable=invalid-name/ : +N801,N806 diff --git a/tox.ini b/tox.ini index 304b735b7..9add57684 100644 --- a/tox.ini +++ b/tox.ini @@ -162,6 +162,7 @@ deps = pep8==1.7.0 pyflakes==1.0.0 flake8-string-format==0.2.1 + flake8-deprecated==0.2 commands = {envpython} -m flake8