-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ruff to CI steps, disabled for now (#1452)
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build and release | ||
|
||
# Temporarily only run outside of master to not have ugly red checkmarks there, needs ruleset changes, #1388 merged and a bunch of code polish to be really useful | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!master' | ||
pull_request: | ||
branches: | ||
- '*' | ||
- '!master' | ||
|
||
jobs: | ||
ruff: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' | ||
|
||
- name: Install Python dependencies and setup venv | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
pip install ruff | ||
- name: Run Ruff | ||
# We do not want to completely fail all CI if Ruff has complaints | ||
continue-on-error: true | ||
run: | | ||
source .venv/bin/activate | ||
ruff check --config pyproject.toml . |