hotfix: revert streamclass to old implementation #13
Workflow file for this run
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: Python Linter & Format | |
on: [pull_request] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
- name: Install ruff | |
run: pip install ruff | |
- name: Check code formatting | |
run: ruff check src | |
- name: Format code | |
run: ruff format src | |
if: success() # Only format if check success | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "style: apply ruff format" |