[1] Add tox generation script, but don't use it yet#3971
Conversation
❌ 52 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Thanks for splitting up the PR, I think it is much easier to review now!
I added some questions and suggestions
scripts/populate_tox/populate_tox.py
Outdated
| return hasher.hexdigest() | ||
|
|
||
|
|
||
| def main(fail_on_changes: bool = False) -> None: |
There was a problem hiding this comment.
This function seems a bit long – I think we should try to break it up into smaller functions. At a minimum, probably the code in the loop could be its own function
scripts/populate_tox/populate_tox.py
Outdated
|
|
||
| if __name__ == "__main__": | ||
| fail_on_changes = len(sys.argv) == 2 and sys.argv[1] == "--fail-on-changes" | ||
| main(fail_on_changes) |
There was a problem hiding this comment.
I think it might be a good idea to add some tests for this script. What do you think?
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Looks better, but I am still struggling to understand some parts of the code. I think more comments and some small refactors would help.
Please see the individual comments; we could also discuss offline if you think that would help
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
Add:
In this PR, the script is set to ignore all integrations, so no tox configuration is actually added. However, it's still the script actually generating the real
tox.inifrom thetox.jinjatemplate.See follow-up PRs for more.
Supersedes #3920