Python linting (ruff) #725
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 linting (ruff) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: '5 1 * * *' # Run nightly | |
workflow_dispatch: | |
jobs: | |
ruff: | |
name: Python linting (ruff) | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version-file: 'scripts/.python-version' | |
cache: 'pip' | |
- name: Install ruff | |
run: | | |
python -m pip install --upgrade pip | |
pip install ruff | |
- name: Run Ruff | |
run: ruff check --output-format=github scripts/ |