[FIX] tests #5
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: Format and Lint | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| format_and_lint: | |
| name: "Format and lint" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| - name: Install development dependencies | |
| run: pipx run poetry install --only lint | |
| - name: Check code formatting with black | |
| run: pipx run poetry run black . --check --diff | |
| - name: Lint with flake8 | |
| run: pipx run poetry run flake8 . --count --show-source --statistics |