Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pycodestyle E741 errors (#663) #671

Merged
merged 3 commits into from
Nov 11, 2017
Merged

Conversation

cryvate
Copy link

@cryvate cryvate commented Nov 8, 2017

Fix pycodestyle E741 errors and re-introduce testing for this in tox. In all these cases, it was l and it represented a list. This is not a good name, so I tried to get something more descriptive. In one case, it was passed to a constructor which had list as an argument, so I decided to stick with that.

This fixes #663.

…, in this case, 'l's) and remove ignore of this error in tox.ini
…, in this case, 'l's) and remove ignore of this error in tox.ini
@codecov
Copy link

codecov bot commented Nov 8, 2017

Codecov Report

Merging #671 into master will decrease coverage by 3.22%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #671      +/-   ##
==========================================
- Coverage   93.86%   90.64%   -3.23%     
==========================================
  Files          11       11              
  Lines        2364     2362       -2     
  Branches        0      395     +395     
==========================================
- Hits         2219     2141      -78     
  Misses        145      145              
- Partials        0       76      +76
Impacted Files Coverage Δ
tox/result.py 100% <100%> (ø) ⬆️
tox/venv.py 93.76% <100%> (-2.5%) ⬇️
tox/session.py 91.59% <100%> (-2.76%) ⬇️
tox/_verlib.py 71.57% <0%> (-9.48%) ⬇️
tox/_quickstart.py 77.62% <0%> (-5.6%) ⬇️
tox/interpreters.py 77.34% <0%> (-4.69%) ⬇️
tox/_pytestplugin.py 89.95% <0%> (-4.02%) ⬇️
tox/config.py 95.03% <0%> (-2.55%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cc34546...cd06b5b. Read the comment docs.

Copy link
Contributor

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tiny thing to fix, otherwise looks good -- thanks for the PR!

tox/result.py Outdated
@@ -63,8 +63,8 @@ def set_python_info(self, pythonexecutable):
version=version)

def get_commandlog(self, name):
l = self.dict.setdefault(name, [])
return CommandLog(self, l)
list = self.dict.setdefault(name, [])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

list shadows the builtin list function, I'd pick a different name here

@gaborbernat gaborbernat self-requested a review November 11, 2017 17:12
@gaborbernat gaborbernat merged commit d70b4b7 into tox-dev:master Nov 11, 2017
@cryvate cryvate deleted the fix-issue663 branch November 11, 2017 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

followup to #662 - Fix E741 (flake8)
3 participants