fix: avoid passgenerator pipe warning #51
This file contains hidden or 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: Lint | |
| on: | |
| push: | |
| branches: ['**'] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies | |
| run: pip install flake8 | |
| - name: Run flake8 | |
| run: | | |
| # Run strict lint on tests (must pass) | |
| flake8 tests/ --max-line-length=120 --exclude=__pycache__ | |
| # Run lint on src with exit-zero (report only, doesn't fail build) | |
| # TODO: Fix existing src/ issues and remove --exit-zero | |
| flake8 src/ --max-line-length=120 --exclude=__pycache__ --exit-zero | |
| shellcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run ShellCheck on bin scripts | |
| uses: ludeeus/action-shellcheck@master | |
| with: | |
| scandir: './bin' | |
| severity: warning | |
| - name: Run ShellCheck on scripts | |
| uses: ludeeus/action-shellcheck@master | |
| with: | |
| scandir: './scripts' | |
| severity: warning |