Spaces:
Running
Running
File size: 711 Bytes
325137b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
name: Ruff
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff==0.2.2 black==24.2.0
- name: Analyzing the code with ruff
run: |
ruff $(git ls-files '*.py')
- name: Verify that no Black changes are required
run: |
black --check $(git ls-files '*.py')
|