Run the formatter after the linter #212
Workflow file for this run
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: pull-request-type-lint-format | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| check-typing: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.10'] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| id: setup-python | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: pip install -e .[dev] | |
| - name: Run type check using mypy | |
| run: | | |
| mypy | |
| - name : Run linting check using ruff | |
| run: | | |
| ruff check | |
| - name: Run formatting check using black | |
| run: | | |
| black . --check | |
| - name: Run spell check using codespell | |
| run: | | |
| codespell -d pynetdicom |