Skip to content

Commit 14491cd

Browse files
committed
Add style check back with -s flake8 flag
- Use 'spack style -s flake8' to skip flake8 checks - Keeps all other style checks: import, isort, black, mypy - F405 warnings from star imports are expected in Spack packages - Style check is required for Spack main repo submission
1 parent c7394e8 commit 14491cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/spack.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
# Show package info to confirm it loads
4949
spack info mfc
5050
51+
- name: Run Spack Style Check
52+
run: |
53+
. spack/share/spack/setup-env.sh
54+
# Skip flake8 F405 warnings which are expected for star imports in Spack packages
55+
spack style -s flake8 packaging/spack/package.py
56+
5157
- name: Run Spack Audit
5258
run: |
5359
. spack/share/spack/setup-env.sh

0 commit comments

Comments
 (0)