Skip to content

flake8 v3.5.0 breaking, E741 ambiguous variable name #1422

Closed

Description

@peterjc

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'

Activity

  1. added a commit that references this issue on Oct 24, 2017
    9fc1db4
  2. changed the title [-]flake8 v3.5.0 breaking on Scripts, E741 ambiguous variable name[/-] [+]flake8 v3.5.0 breaking, E741 ambiguous variable name[/+] on Oct 24, 2017
  3. added 4 commits that reference this issue on Oct 24, 2017
    9437900
    d9dd4aa
    7deaebe
    5460793
  4. added a commit that references this issue on Oct 24, 2017
    a06862c
  5. added 2 commits that reference this issue on Oct 31, 2017
    e423439
    6c78760
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions