Fix TypeError in test_log fixture (#32) #51
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: Check Formatting | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
code-quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: | | |
poetry install --no-interaction --no-root | |
poetry run pip install ruff flake8 | |
- name: Run Ruff | |
run: poetry run ruff check . | |
- name: Run Ruff formatter | |
run: poetry run ruff format . --check | |
- name: Run Flake8 | |
run: poetry run flake8 | |
- name: Check for merge conflicts | |
run: | | |
! grep -rn "^<<<<<<< HEAD" --exclude-dir={.git,.github} | |
- name: Check for debug statements | |
run: | | |
! grep -rn "import pdb" --exclude-dir={.git,.github} | |
! grep -rn "import ipdb" --exclude-dir={.git,.github} | |
! grep -rn "import pudb" --exclude-dir={.git,.github} | |
- name: Check for trailing whitespace | |
run: | | |
! grep -rn "[[:blank:]]$" --exclude-dir={.git,.github} |