Improve latex handling #102
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: Static analysis | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - devel | |
| pull_request: | |
| branches: | |
| - main | |
| - devel | |
| jobs: | |
| cloc: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Download and run cloc | |
| run: | | |
| curl -s https://raw.githubusercontent.com/AlDanial/cloc/master/cloc > cloc | |
| chmod +x cloc | |
| ./cloc --version | |
| ./cloc $(git ls-files) | |
| black: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Code formatting with black | |
| run: | | |
| pip install "black[jupyter]" | |
| black --check src/ | |
| black --check tutorials/ | |
| isort: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Code formatting with isort | |
| run: | | |
| pip install isort | |
| isort --check src/ | |
| isort --check tutorials/ | |
| mypy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Type check with mypy | |
| continue-on-error: true | |
| run: | | |
| pip install mypy | |
| mypy src/ | |
| prospector: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Static analysis with prospector | |
| continue-on-error: true | |
| run: | | |
| pip install prospector | |
| prospector src/ | |
| ruff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Lint with ruff | |
| continue-on-error: true | |
| run: | | |
| pip install ruff | |
| ruff check src/ | |
| pylint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the code | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Lint with pylint | |
| continue-on-error: true | |
| run: | | |
| pip install pylint | |
| pylint src/ |