On Sun, Jul 23, 2017 at 2:13 PM, Razzi Abuissa email@example.com wrote:
I've done a little searching but have not found a lint check for the following:
[ 'a', 'b' 'c' ]
evaluates to ['a', 'bc'] due to implicit string concatenation, but usually it's intended to be ['a', 'b', 'c']. If it is meant to be ['a', 'bc'] it's bad style.
Guido recommends popular lint tools add a rule for this here: https://groups.google.com/forum/#%21msg/python-ideas/jP1YtlyJqxs/FacZu-WK_9A...
If this check does not exist, I would be willing to create a flake8 plugin and add it to PyCQA.
This has been discussed here https://github.com/PyCQA/pycodestyle/issues/308 and there are a few plugins for Flake8 which do this:
You can find Flake8 plugins using this search on PyPI: https://pypi.org/search/?c=Framework+::+Flake8