Skip to content

fix ruff + add to precommit #12

fix ruff + add to precommit

fix ruff + add to precommit #12

name: Check code formatting
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 13 * * 1" # run every Monday at 13:00 UTC
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: isort
run: |
isort .
- name: black
run: |
black .
- name: ruff
run: |
ruff .