Repository navigation
Closed
Description
TravisCI has started failing our style checks, eg https://travis-ci.org/biopython/biopython/jobs/292025381
$ travis_wait tox -c .travis-tox.ini -e $TOXENV
Still running (1 of 20): tox -c .travis-tox.ini -e style
The command tox -c .travis-tox.ini -e style exited with 1.
Log:
style installed: docutils==0.14,flake8==3.5.0,flake8-blind-except==0.1.1,flake8-docstrings==1.1.0,flake8-polyfill==1.0.1,flake8-rst-docstrings==0.0.8,mccabe==0.6.1,pycodestyle==2.3.1,pydocstyle==2.1.1,pyflakes==1.6.0,restructuredtext-lint==1.1.1,six==1.11.0,snowballstemmer==1.2.1
style runtests: PYTHONHASHSEED='1367457650'
style runtests: commands[0] | flake8 BioSQL/
style runtests: commands[1] | flake8 Scripts/
Scripts/xbbtools/nextorf.py:102:9: E741 ambiguous variable name 'l'
Scripts/xbbtools/xbb_widget.py:214:9: E741 ambiguous variable name 'l'
ERROR: InvocationError: '/home/travis/build/biopython/biopython/.tox/style/bin/flake8 Scripts/'
After upgrading flake8, I can reproduce this locally:
$ flake8 --version
3.4.1 (flake8-blind-except: 0.1.1, flake8-docstrings: 1.1.0, pydocstyle: 2.1.1, flake8_commas._base: 0.4.3, mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.5.0, radon: 2.0.2, rst-docstrings: 0.0.8) CPython 3.6.0 on Darwin
scottishdumpling:biopython pc40583$ pip3 install --upgrade flake8
Collecting flake8
Downloading flake8-3.5.0-py2.py3-none-any.whl (69kB)
100% |████████████████████████████████| 71kB 1.6MB/s
Collecting pyflakes<1.7.0,>=1.5.0 (from flake8)
Downloading pyflakes-1.6.0-py2.py3-none-any.whl (227kB)
100% |████████████████████████████████| 235kB 4.2MB/s
Requirement already up-to-date: mccabe<0.7.0,>=0.6.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from flake8)
Requirement already up-to-date: pycodestyle<2.4.0,>=2.0.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from flake8)
Installing collected packages: pyflakes, flake8
Found existing installation: pyflakes 1.5.0
Uninstalling pyflakes-1.5.0:
Successfully uninstalled pyflakes-1.5.0
Found existing installation: flake8 3.4.1
Uninstalling flake8-3.4.1:
Successfully uninstalled flake8-3.4.1
Successfully installed flake8-3.5.0 pyflakes-1.6.0
$ flake8 Scripts/
Scripts/xbbtools/nextorf.py:102:9: E741 ambiguous variable name 'l'
Scripts/xbbtools/xbb_widget.py:214:9: E741 ambiguous variable name 'l'
Metadata
Metadata
Assignees
Labels
No labels
Activity
Avoid using lower case l as a variable name.
[-]flake8 v3.5.0 breaking on Scripts, E741 ambiguous variable name[/-][+]flake8 v3.5.0 breaking, E741 ambiguous variable name[/+]flake8: Fix E741 ambiguous variable name 'l'
flake8: Fix E741 ambiguous variable name 'l'
Avoid using lower case l as a variable name.
flake8: Fix E741 ambiguous variable name 'l'
flake8: Fix E741 ambiguous variable name 'l'
Avoid using lower case l as a variable name.
flake8: Fix E741 ambiguous variable name 'l'