Solve sodium norway species parsing problem #45
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 (Code Style & Format) | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| # Skip if the commit was made by github-actions bot to prevent loops | |
| if: github.actor != 'github-actions[bot]' | |
| outputs: | |
| changes-committed: ${{ steps.auto-commit.outputs.changes_detected }} | |
| steps: | |
| - name: "[setup:vcs] Checkout code" | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: "[setup:env] Set up Python" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: "[setup:deps] Install pre-commit" | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pre-commit | |
| - name: "[lint:check] Run pre-commit hooks" | |
| run: pre-commit run --all-files | |
| - name: "[lint:commit] Commit auto-fixes (if any)" | |
| id: auto-commit | |
| uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: "style: apply pre-commit fixes" | |
| commit_user_name: github-actions[bot] | |
| commit_user_email: github-actions[bot]@users.noreply.github.com |