-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ruff for linting/formatting (#297)
- Loading branch information
1 parent
e0ed8c8
commit 44f9b0e
Showing
10 changed files
with
649 additions
and
472 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
name: Python Linter | ||
on: push | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# Check linter rules | ||
- uses: astral-sh/ruff-action@v3 | ||
|
||
# Check formatting is correct | ||
- uses: astral-sh/ruff-action@v3 | ||
with: | ||
args: "format --check" |
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 |
---|---|---|
@@ -1,27 +1,36 @@ | ||
name: Buildbot Validations | ||
on: [ push, pull_request ] | ||
on: | ||
push: | ||
paths: | ||
- "**.py" | ||
- "**.cfg" | ||
- "**.tac" | ||
jobs: | ||
test: | ||
name: Check buildbot config on Python ${{ matrix.python-version }} | ||
# TODO: should be ubuntu-latest, but actions/setup-python doesn't work with ubuntu 22 just yet | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: [ 3.8, 3.9, "3.10", 3.11 ] | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install importlib | ||
python -m pip install importlib.metadata | ||
python -m pip install -U pip setuptools wheel | ||
pip install -r requirements.txt | ||
- name: Check config | ||
run: | | ||
cd master | ||
|
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
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
Oops, something went wrong.