Skip to content

[test] lint #6700

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
if ! lintrunner -v --force-color --all-files --tee-json=lint.json; then
echo ""
echo -e "\e[1m\e[36mYou can reproduce these results locally by using \`lintrunner -m main\`.\e[0m"
cat lint.json
exit 1
fi
- name: Produce SARIF
Expand Down
4 changes: 1 addition & 3 deletions tools/torchci/td/get_merge_base_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ def upload_merge_base_info(shas: List[str]) -> None:
main_branch_shas = list_past_year_shas()
print(f"There are {len(main_branch_shas)} shas, uploading in batches of {interval}")
for i in range(0, len(main_branch_shas), interval):
shas = [
x["head_sha"]
for x in query_clickhouse(
shas = [x["head_sha"] for x in query_clickhouse(
NOT_IN_MERGE_BASES_TABLE,
{"shas": main_branch_shas[i : i + interval]},
)
Expand Down
Loading