chore(deps-dev): bump ruff from 0.4.3 to 0.5.6 #48
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 | |
on: | |
push: | |
branches: ["master", "ci-test"] | |
paths: ["**/*.py", "Pipfile.lock", "pyproject.toml"] | |
pull_request: | |
branches: ["master", "ci-test"] | |
paths: ["**/*.py", "Pipfile.lock", "pyproject.toml"] | |
jobs: | |
pyright: | |
name: Pyright | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: pipenv | |
- name: Setup pipenv | |
run: pipx install pipenv && pipenv sync | |
- name: Activate venv | |
run: echo "$(pipenv --venv --quiet)/bin" >> $GITHUB_PATH | |
- uses: jakebailey/pyright-action@v2 | |
ruff: | |
name: Ruff | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Ruff | |
run: pipx run ruff check --output-format github | |
black: | |
name: Black | |
needs: ["pyright", "ruff"] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ruff | |
run: pipx install ruff | |
- name: Run isort | |
run: ruff check --select I --fix | |
- name: Run Black | |
run: ruff format | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "style: black + isort" |