Merge pull request #96 from rsb-23/linting/2-add-pylint #12
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: Code Lint Check | |
| on: | |
| pull_request: | |
| push: | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5.1.1 | |
| with: | |
| python-version: 3.9 | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit pylint | |
| - name: Run pre-commit | |
| env: | |
| SKIP: mypy,no-commit-to-branch | |
| run: pre-commit run --all-files |