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 replacement of sections with dash #2000

Merged
merged 4 commits into from
Apr 6, 2021
Merged

fix replacement of sections with dash #2000

merged 4 commits into from
Apr 6, 2021

Conversation

obestwalter
Copy link
Member

closes #1985 - also accepting a dash as a part of statically defined environment names

Co-authored-by: Jürgen Gmach juergen.gmach@googlemail.com
Co-authored-by: Miroslav Šedivý eumiro@gmail.com

@codecov
Copy link

codecov bot commented Apr 6, 2021

Codecov Report

Merging #2000 (4f01be6) into rewrite (00723c5) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           rewrite    #2000      +/-   ##
===========================================
+ Coverage    99.83%   99.84%   +0.01%     
===========================================
  Files          147      147              
  Lines         8276     8528     +252     
  Branches       823      919      +96     
===========================================
+ Hits          8262     8515     +253     
  Misses           3        3              
+ Partials        11       10       -1     
Flag Coverage Δ
tests 99.84% <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/loader/ini/replace.py 100.00% <ø> (ø)
.../config/loader/ini/replace/test_replace_tox_env.py 100.00% <100.00%> (ø)
src/tox/provision.py 100.00% <0.00%> (ø)
src/tox/config/of_type.py 100.00% <0.00%> (ø)
src/tox/config/set_env.py 100.00% <0.00%> (ø)
src/tox/config/cli/parse.py 100.00% <0.00%> (ø)
src/tox/config/loader/ini/factor.py 100.00% <0.00%> (ø)
src/tox/tox_env/python/pip/req_file.py 100.00% <0.00%> (ø)
tests/tox_env/python/pip/test_req_file.py 100.00% <0.00%> (ø)
src/tox/tox_env/python/virtual_env/package/api.py 100.00% <0.00%> (ø)
... and 1 more

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 00723c5...4f01be6. Read the comment docs.



@pytest.mark.parametrize(
"envname, exp",
Copy link
Member

@gaborbernat gaborbernat Apr 6, 2021

Choose a reason for hiding this comment

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

env_name and type annotate the arguments; in the rewrite we've dropped non snake case naming

Copy link
Member

Choose a reason for hiding this comment

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

Also do add a changelog entry 👍🏻 thanks!

closes #1985 - also accepting a dash as a part of statically defined environment names

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Miroslav Šedivý <eumiro@gmail.com>
obestwalter and others added 2 commits April 6, 2021 18:28
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Miroslav Šedivý <eumiro@gmail.com>
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Miroslav Šedivý <eumiro@gmail.com>
Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

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

Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Co-authored-by: Miroslav Šedivý <eumiro@gmail.com>
@gaborbernat gaborbernat merged commit 9608e23 into rewrite Apr 6, 2021
@gaborbernat gaborbernat deleted the issue1985 branch April 6, 2021 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tox4: cannot handle empty envlist for tox -l tox4: substituting values from other sections seems to not work
2 participants