Merge pull request #248 from Hyperkid123/feat/RHCLOUD-48376 #70
This file contains hidden or 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: Ruff Format Check | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.py' | |
| - '.github/workflows/ruff-format.yml' | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '**.py' | |
| - '.github/workflows/ruff-format.yml' | |
| jobs: | |
| ruff-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Install ruff | |
| run: pip install ruff | |
| - name: Check Python formatting | |
| run: | | |
| ruff format --check . | |
| if [ $? -eq 0 ]; then | |
| echo "✓ All Python files are properly formatted" | |
| else | |
| echo "✗ Formatting errors found. Run 'ruff format .' locally to fix." | |
| exit 1 | |
| fi |