Merge pull request #26 from tirthjoship/chore/docs-restructure #78
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 & Typecheck | |
| on: | |
| push: | |
| branches: [main, dev, "feature/**", "feat/**", "fix/**"] | |
| pull_request: | |
| branches: [main, dev] | |
| jobs: | |
| lint: | |
| name: Lint (pre-commit) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install pre-commit | |
| pip install black isort mypy ruff | |
| - name: Run pre-commit | |
| run: pre-commit run --all-files | |
| typecheck: | |
| name: Typecheck (mypy strict) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| pip install mypy pandas-stubs types-requests | |
| pip install . | |
| - name: Run mypy | |
| run: mypy domain/ adapters/ application/ --strict |