langflow/.github/workflows/style-check-py.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

31 lines
723 B
YAML

name: Ruff Style Check
on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "**/*.py"
jobs:
lint:
name: Ruff Style Check
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.12"
steps:
- name: Check out the code at a specific ref
uses: actions/checkout@v4
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: Register problem matcher
run: echo "::add-matcher::.github/workflows/matchers/ruff.json"
- name: Run Ruff Check
run: uv run --only-dev ruff check --output-format=github .
- name: Minimize uv cache
run: uv cache prune --ci