Merge pull request #571 from opencybersecurityalliance/k2-kestrel-too… #1148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unused imports check | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- 'packages/*/src/**' | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- 'packages/*/src/**' | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
unusedimports: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install Kestrel package | |
run: | | |
pip install --upgrade pip setuptools wheel | |
pip install unimport | |
- name: Check | |
run: unimport --check --exclude __init__.py packages/*/src/ |