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

Add typings for the scripts.compile module #1322

Merged
merged 15 commits into from Mar 12, 2021

Conversation

atugushev
Copy link
Member

Refs: #972

@atugushev atugushev mentioned this pull request Feb 9, 2021
16 tasks
@atugushev atugushev marked this pull request as ready for review February 23, 2021 07:02
@atugushev atugushev marked this pull request as draft February 23, 2021 07:02
@codecov
Copy link

codecov bot commented Feb 23, 2021

Codecov Report

Merging #1322 (be7579f) into master (20d873d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1322   +/-   ##
=======================================
  Coverage   99.65%   99.65%           
=======================================
  Files          33       33           
  Lines        2882     2915   +33     
  Branches      309      308    -1     
=======================================
+ Hits         2872     2905   +33     
  Misses          5        5           
  Partials        5        5           
Impacted Files Coverage Δ
piptools/repositories/base.py 100.00% <100.00%> (ø)
piptools/repositories/local.py 96.29% <100.00%> (-0.20%) ⬇️
piptools/repositories/pypi.py 97.11% <100.00%> (+0.16%) ⬆️
piptools/scripts/compile.py 100.00% <100.00%> (ø)
piptools/utils.py 100.00% <100.00%> (ø)
piptools/writer.py 100.00% <100.00%> (ø)
tests/conftest.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 20d873d...4f77cca. Read the comment docs.

@atugushev atugushev marked this pull request as ready for review February 23, 2021 07:58
@@ -315,7 +315,7 @@ def get_compile_command(click_ctx: click.Context) -> str:
else:
if isinstance(val, str) and is_url(val):
val = redact_auth_from_url(val)
if option.name == "pip_args":
if option.name == "pip_args_str":
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't look related to typing

Copy link
Member Author

Choose a reason for hiding this comment

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

Related to #1322 (comment)

build_isolation: bool,
emit_find_links: bool,
cache_dir: str,
pip_args_str: Optional[str],
Copy link
Member

Choose a reason for hiding this comment

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

Why did you rename it?

Copy link
Member Author

@atugushev atugushev Feb 28, 2021

Choose a reason for hiding this comment

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

Note, the CLI option is untouched , only variable name’s changed. See option decorator.

Copy link
Member

Choose a reason for hiding this comment

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

There's a lot of changes and renaming variables on top of everything else is hard to follow. It's usually better to make separate patches that are easier to digest for reviewers.

Copy link
Member Author

@atugushev atugushev Feb 28, 2021

Choose a reason for hiding this comment

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

The intention was to make diff less noisy and make PR easier for reviewers.

Copy link
Member Author

Choose a reason for hiding this comment

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

Would you like me to revert the variable name back? I'm okay with both variants.

Copy link
Member

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

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

Looks like you're changing the CLI API which is unrelated and is a breaking change.

@webknjaz webknjaz self-requested a review February 28, 2021 10:35
@atugushev atugushev dismissed webknjaz’s stale review March 9, 2021 14:32

Self-requested review after requested changes doesn't reset red flag

tests/conftest.py Outdated Show resolved Hide resolved
@atugushev
Copy link
Member Author

Gentle ping @webknjaz, @jdufresne 👋🏼 All suggestions seem resolved. Is there anything I can do to complete the review?

This was referenced Mar 15, 2021
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.

None yet

3 participants