Merge pull request #103 from maykinmedia/issue/token-pk #277
This file contains 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: code-quality | |
on: [push] | |
jobs: | |
isort: | |
name: Check import sorting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: isort/isort-action@v1 | |
with: | |
requirementsFiles: requirements/dev.txt | |
sortPaths: "src" | |
configuration: '--check-only --diff' | |
black: | |
name: Check code formatting with black | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements/dev.txt | |
- name: Run black | |
run: | | |
black --check src |