Merge pull request #39 from SFI-Visual-Intelligence/Jan/accuracy #94
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: Format | |
on: | |
push: | |
paths: | |
- 'utils/**' | |
pull_request: | |
paths: | |
- 'utils/**' | |
jobs: | |
format: | |
name: Run Ruff and isort | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install ruff isort | |
- name: Run Ruff check | |
run: | | |
ruff check utils/ | |
- name: Run isort check | |
run: | | |
isort --check-only utils/ |