Skip to content

Commit

Permalink
Use ruff-python-parser to compute Python imports (#3103)
Browse files Browse the repository at this point in the history
The goal is to use ruff to replace Dominik's ad-hoc parser. This just adds the
new code, I'll switch to using it and remove the old code in a followup.
  • Loading branch information
hoodmane authored Dec 31, 2024
1 parent 4ff974a commit 4485b18
Show file tree
Hide file tree
Showing 38 changed files with 2,307 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
run: |
git config --global core.symlinks true
git config --show-scope --show-origin core.symlinks
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'startup --output_user_root=C:/tmp')
git config --system core.longpaths true
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'startup --output_user_root=\\\\?\\C:\\tmp')
- name: Configure download mirrors
shell: bash
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ jobs:
if: runner.os == 'Windows'
run: |
git config --global core.symlinks true
git config --system core.longpaths true
git config --show-scope --show-origin core.symlinks
# Set a custom output root directory to avoid long file name issues.
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'startup --output_user_root=C:/tmp')
[System.IO.File]::WriteAllLines((Join-Path -Path $env:USERPROFILE -ChildPath '.bazelrc'), 'startup --output_user_root=\\\\?\\C:\\tmp')
- name: Configure download mirrors
shell: bash
run: |
Expand Down
Loading

0 comments on commit 4485b18

Please sign in to comment.