langflow/.github/workflows/py_autofix.yml
Gabriel Luiz Freitas Almeida f91a700893
ci: Limit workflows to Python files and optimize environment setup (#4567)
* Limit style check workflow to Python files only

* refactor: update autofix workflow to target Python files and optimize environment setup
2024-11-13 05:49:08 -08:00

21 lines
511 B
YAML

name: autofix.ci
on:
pull_request:
paths:
- "**/*.py"
env:
POETRY_VERSION: "1.8.2"
jobs:
lint:
name: Run Ruff Check and Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- run: uv run ruff check --fix-only .
- run: uv run ruff format .
- uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
- name: Minimize uv cache
run: uv cache prune --ci