Skip to content

🎨 Add auto formatter #5

🎨 Add auto formatter

🎨 Add auto formatter #5

Workflow file for this run

name: Formatter
on:
pull_request:
push:
env:
SKIP: pylint,isort,black
jobs:
Formatter:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- uses: isort/[email protected]
with:
configuration: "--settings-file=.isort.cfg"
requirements-files: "requirements.txt"
- uses: psf/black@stable
with:
options: "--line-length=120"
version: "24.3.0"
- uses: stefanzweifel/[email protected]
with:
commit_message: "Format code with isort and black"
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- uses: pre-commit/[email protected]
Pylint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- uses: actions/[email protected]
- 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
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py') --rcfile=$(git ls-files '.pylintrc')