Add repo_checker.py #16
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a tool to clone repos of popular projects, and run a test command for each. Stops when found a problem.
The default command is
flake8 --select YTT1
to find potential Python 3.10 problems with https://github.com/asottile/flake8-2020.Run on top 10 projects, will stop if the test command has a non-zero exit:
Same, but if there's already an existing directory for a repo, it won't test that one again:
Using a custom command,
CLONE_DIR
will be replaced with the cloned directory. Here, will do agit pull
in that repo to update:python3 repo_checker.py --number 10 --command "git -C CLONE_DIR pull"
Custom command, will run for all repos, even if dirs exist, but will skip dirs "foo" and "bar".
python3 repo_checker.py --number 10 -c "flake8 --select XYZ CLONE_DIR" --repos foo bar