mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
Fix pre-commit issues in check-no-torch.yml
- Remove trailing whitespace - Add newline at end of file
This commit is contained in:
parent
3af0f007e2
commit
02492c88b3
1 changed files with 4 additions and 4 deletions
8
.github/workflows/check-no-torch.yml
vendored
8
.github/workflows/check-no-torch.yml
vendored
|
|
@ -13,14 +13,14 @@ jobs:
|
|||
check-torch:
|
||||
runs-on: ubuntu-latest
|
||||
name: Ensure torch is not in main dependencies
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
- name: Check pyproject.toml for torch in main dependencies
|
||||
run: |
|
||||
echo "🔍 Checking if torch is in main dependencies..."
|
||||
|
||||
|
||||
# Check if torch appears in the main dependencies section
|
||||
if grep -A 50 '^\[project\]' pyproject.toml | grep -B 50 '^\[project.optional-dependencies\]\|^\[build-system\]\|^\[tool\]' | grep -E '^\s*"torch' | grep -v '^#'; then
|
||||
echo "❌ ERROR: torch found in main dependencies!"
|
||||
|
|
@ -37,4 +37,4 @@ jobs:
|
|||
exit 1
|
||||
else
|
||||
echo "✅ No torch found in main dependencies"
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue