Merge pull request #4 from passagemath/README-passagemath #1
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: [ "main" ] } | |
| pull_request: { branches: [ "main" ] } | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniforge-variant: Mambaforge | |
| miniforge-version: 23.3.1-0 | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| shell: bash -l {0} | |
| run: | | |
| mamba install -y codespell pycodestyle | |
| - name: Run codespell | |
| shell: bash -l {0} | |
| run: codespell `git ls-files` | |
| - name: Run pycodestyle | |
| shell: bash -l {0} | |
| # We currently only check for some warnings. We should enable & fix more of them. | |
| run: pycodestyle --ignore=E203,W503 --max-line-length=256 --select=W2,W3 euler_product/ |