-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use a dummy repository to run the upgrade_python
tests
#16019
Conversation
417d691
to
a0c49c2
Compare
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
a0c49c2
to
3a22d4f
Compare
for entry in fake_repo.path.iterdir(): | ||
config_file = entry / 'hatch.toml' | ||
if not config_file.is_file(): | ||
continue | ||
|
||
for i, line in enumerate(config_file.read_text().splitlines()): | ||
if line.startswith('python = [') and PYTHON_VERSION in line: | ||
if line.startswith('python = [') and old_version in line: | ||
changes[config_file].append(i) | ||
|
||
minimum_changes = sum(map(len, changes.values())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth dropping this loop? IIUC it's only used to make an assertion on the number after Passed:
in the output, and since the output is deterministic now we might be able to drop that (we're already asserting that it equals 2 now).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Updated
3a22d4f
to
e9e18c5
Compare
e9e18c5
to
4b0ffd5
Compare
4b0ffd5
to
774f273
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
What does this PR do?
Use a dummy repository to run the
upgrade_python
testsMotivation
Additional Notes
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.