style: fix formatting issues using ruff #10
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", "dev"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install dev dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Ruff lint | |
| run: python -m ruff check src/ tests/ | |
| - name: Ruff format check | |
| run: python -m ruff format --check src/ tests/ | |
| - name: MyPy type check | |
| run: python -m mypy src/spring2shell/ |