Fix pre-commit issues in check-no-torch.yml

- Remove trailing whitespace
- Add newline at end of file
This commit is contained in:
Dakota 2025-06-04 10:34:57 -05:00
parent 3af0f007e2
commit 02492c88b3

View file

@ -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