fix: apply black formatting #31
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, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint-py: | |
| name: Lint Python | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
| - name: Set up Python | |
| uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 | |
| with: | |
| python-version: "3.12" | |
| - name: Install linters | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff black mypy | |
| - name: Ruff check | |
| run: ruff check apps packages services scripts tests --output-format=github | |
| continue-on-error: true | |
| - name: Black check | |
| run: black --check apps packages services scripts tests | |
| - name: Mypy | |
| run: mypy apps/api packages/schemas | |
| continue-on-error: true | |
| lint-docs: | |
| name: Docs structure | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
| - run: test -f docs/architecture.md && test -f docs/api-spec.md && test -f docs/glossary.md |