Skip to content

Commit

Permalink
Test GPT-fixed action definer
Browse files Browse the repository at this point in the history
  • Loading branch information
GarethCabournDavies committed Jan 9, 2025
1 parent 8da9dac commit 7cc45ed
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/check_code.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
name: Flake8 check
on: [pull_request]
jobs:
flake8 unused imports:
flake8_unused_imports:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install flake8
run: pip install flake8
- name: Checking executables for unused imports
run: flake8 --select=F401 `find bin -type f -name pycbc_*`
run: flake8 --select=F401 $(find bin -type f -name pycbc_*)
- name: Checking modules for unused imports
run: flake8 --select=F401 `find pycbc | grep '\.py$' | grep -v -e __init__ -e "version.py"`
run: |
flake8 --select=F401 $(find pycbc | grep '\.py$' | grep -v -e __init__ -e 'version.py')
- name: Checking tests for unused imports
run: flake8 --select=F401 `find test | grep '\.py$' | grep -v test_schemes`
run: |
flake8 --select=F401 $(find test | grep '\.py$' | grep -v test_schemes)

0 comments on commit 7cc45ed

Please sign in to comment.