-
Notifications
You must be signed in to change notification settings - Fork 147
Clean-up + add hygiene checks #463
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
Open
puneetmatharu
wants to merge
13
commits into
ARM-software:main
Choose a base branch
from
puneetmatharu:add-hygiene-checks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f543203
Avoid creating a pip cache dir in Dockerfiles.
puneetmatharu 0e1bc40
Address ruff violations in examples/.
puneetmatharu 03738ca
Add updated pre-commit config.
puneetmatharu 391f94a
Disable executable bit from classify_image.py.
puneetmatharu 19ad697
Add trailing whitespace lines.
puneetmatharu 288b009
Add hygiene workflow.
puneetmatharu f88ec09
Add 'ruff check' to pre-commit hooks and hygiene CI.
puneetmatharu 0de0117
Update permission bits of classify_image.py.
puneetmatharu 469fb3c
Tweak comments in .pre-commit-config.yaml.
puneetmatharu f64b655
Tweak hygiene.yml.
puneetmatharu a7418e2
Remove unused files.
puneetmatharu c352db5
Remove trailing whitespace from CHANGELOG.
puneetmatharu 070ebd4
Simplify use of pre-commit hooks in hygiene CI.
puneetmatharu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # SPDX-FileCopyrightText: Copyright 2026 Arm Limited and affiliates. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| name: Hygiene | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| workflow_dispatch: | ||
|
|
||
| #* Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844 | ||
| #* Does not apply to the main branch. | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
|
||
| # Declare default permissions as read only. | ||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| hygiene: | ||
| runs-on: ah-ubuntu_24_04-c7g_2x-50 | ||
| steps: | ||
| - name: Checkout Tool-Solutions | ||
| uses: actions/checkout@v6.0.2 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v6.0.0 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install hygiene tooling | ||
| run: | | ||
| python -m pip install --user --no-cache-dir pre-commit==4.5.1 reuse==6.2.0 | ||
| echo "$HOME/.local/bin" >> "$GITHUB_PATH" | ||
|
|
||
| # The manual stage contains every whole-repo-safe hook and excludes the | ||
| # copyright annotation hooks, which intentionally mutate changed files. | ||
| - name: Run whole-repo pre-commit checks | ||
| run: pre-commit run --all-files --hook-stage manual | ||
|
|
||
| - name: Run whole-repo REUSE lint | ||
| run: reuse lint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...ameworks/pytorch-aarch64/examples/gen_ai_utils/quant_configs/aarch64_cpu_channelwise.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
.../pytorch-aarch64/examples/gen_ai_utils/quant_configs/aarch64_cpu_channelwise.json.license
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
ML-Frameworks/pytorch-aarch64/examples/gen_ai_utils/quant_configs/aarch64_cpu_groupwise.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ks/pytorch-aarch64/examples/gen_ai_utils/quant_configs/aarch64_cpu_groupwise.json.license
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
ML-Frameworks/pytorch-aarch64/examples/openimages-mlperf.json.license
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -144,4 +144,3 @@ git-shallow-clone https://github.com/pytorch/pytorch.git $PYTORCH_HASH | |
| ) | ||
| fi | ||
| ) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # SPDX-FileCopyrightText: Copyright 2025 Arm Limited and affiliates. | ||
| # SPDX-FileCopyrightText: Copyright 2025, 2026 Arm Limited and affiliates. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| tensorflow/ | ||
| results/ | ||
| *.whl | ||
| *.whl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,6 @@ | |
| import zipfile | ||
|
|
||
| import numpy as np | ||
| import yaml | ||
| from tqdm import tqdm | ||
|
|
||
| import tensorflow as tf | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
I understand not wanting to cache in the docker build phase to avoid releasing extra blobs, but I think it may be inconvenient for the user to find that uv doesn't cache (given that it is such a useful feature of uv!). Can we instead set this on each run command (or unset at the end of the build)?
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.
Hmm, I'm setting the environment variable during the
workshopstage. It should be wiped when we call the secondFROM, i.e. when we create the user's workspace. Is there something I'm missing?