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

Minor code improvements #2017

Merged
merged 4 commits into from
Apr 11, 2021
Merged

Minor code improvements #2017

merged 4 commits into from
Apr 11, 2021

Conversation

eumiro
Copy link
Member

@eumiro eumiro commented Apr 11, 2021

Some tiny independent refactorings probably without need to be mentioned in the changelog.

@eumiro eumiro requested a review from gaborbernat as a code owner April 11, 2021 15:50
@codecov
Copy link

codecov bot commented Apr 11, 2021

Codecov Report

Merging #2017 (ecef849) into rewrite (9311599) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           rewrite    #2017      +/-   ##
===========================================
- Coverage    99.83%   99.83%   -0.01%     
===========================================
  Files          151      151              
  Lines         8457     8450       -7     
  Branches       875      871       -4     
===========================================
- Hits          8443     8436       -7     
  Misses           3        3              
  Partials        11       11              
Flag Coverage Δ
tests 99.83% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/tox/config/cli/env_var.py 100.00% <100.00%> (ø)
src/tox/config/loader/convert.py 100.00% <100.00%> (ø)
src/tox/config/loader/ini/replace.py 100.00% <100.00%> (ø)
src/tox/pytest.py 100.00% <100.00%> (ø)
src/tox/session/cmd/run/common.py 100.00% <100.00%> (ø)
src/tox/tox_env/python/pip/pip_install.py 100.00% <100.00%> (ø)
src/tox/tox_env/python/pip/req/file.py 100.00% <100.00%> (ø)
src/tox/tox_env/python/runner.py 100.00% <100.00%> (ø)
.../execute/local_subprocess/test_local_subprocess.py 100.00% <100.00%> (ø)

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 9311599...ecef849. Read the comment docs.

src/tox/config/cli/env_var.py Outdated Show resolved Hide resolved
src/tox/config/loader/str_convert.py Outdated Show resolved Hide resolved
result.extend(args)
result.extend(install_command[opts_at + 1 :])
return result
return install_command[:opts_at] + list(args) + install_command[opts_at + 1 :]
Copy link
Member

Choose a reason for hiding this comment

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

again if you don't save the return value into a variable is a PITA to debug when something here is wrong

Copy link
Member

Choose a reason for hiding this comment

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

This was not reverted, but set resolved? 🤔

Copy link
Member

@jugmac00 jugmac00 left a comment

Choose a reason for hiding this comment

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

see comments; shorter is not always better

src/tox/config/cli/env_var.py Outdated Show resolved Hide resolved
src/tox/config/cli/parser.py Outdated Show resolved Hide resolved
src/tox/session/cmd/run/common.py Show resolved Hide resolved
src/tox/session/cmd/run/common.py Show resolved Hide resolved
src/tox/tox_env/python/pip/req/file.py Outdated Show resolved Hide resolved
@eumiro
Copy link
Member Author

eumiro commented Apr 11, 2021

Reverted/adjusted all your comments, thank you!

(although some reverted steps will itch me next time again :-) )

@eumiro eumiro requested review from gaborbernat and jugmac00 April 11, 2021 18:47
@gaborbernat gaborbernat merged commit 963f7c5 into tox-dev:rewrite Apr 11, 2021
@eumiro eumiro deleted the minor-code branch April 12, 2021 16:12
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.

3 participants