Bump ruff from 0.4.2 to 0.4.3 #29
Workflow file for this run
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: Isolated Static check | |
on: | |
pull_request: | |
paths: | |
- "ruff-requirements.txt" | |
- "black-requirements.txt" | |
- "isort-requirements.txt" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Isort: | |
name: Validate import sorting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -r isort-requirements.txt | |
- name: Check imports with isort | |
run: | | |
isort --check --diff . | |
Black: | |
name: Validate black formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -r black-requirements.txt | |
- name: Check code style with black | |
run: | | |
black --check . | |
Ruff: | |
name: Check with Ruff | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -r ruff-requirements.txt | |
- name: Lint with ruff | |
run: | | |
ruff check --output-format github . | |
PyLint: | |
name: Check with pylint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ubuntu dependencies | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get install -y python3-gi gobject-introspection libgirepository1.0-dev | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r test_requirements.txt PyGObject | |
pip install --upgrade -r pylint-requirements.txt | |
- name: Install package for test | |
run: pip install -e . | |
- name: Lint with pylint | |
run: pylint urwid |