Skip to content

Tidy up of unused imports #2

Tidy up of unused imports

Tidy up of unused imports #2

Workflow file for this run

name: Flake8 check
on: [pull_request]
jobs:
flake8 unused imports:

Check failure on line 4 in .github/workflows/check_code.yml

View workflow run for this annotation

GitHub Actions / Flake8 check

Invalid workflow file

The workflow is not valid. .github/workflows/check_code.yml (Line: 4, Col: 5): The identifier 'flake8 unused imports' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
steps:
- name: Install flake8
run: pip install flake8
- name: Checking executables for unused imports
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"`
- name: Checking tests for unused imports
run: flake8 --select=F401 `find test | grep '\.py$' | grep -v test_schemes`