Skip to content

feat[ci/cd]: add ruff text formatter #4

feat[ci/cd]: add ruff text formatter

feat[ci/cd]: add ruff text formatter #4

Workflow file for this run

name: Code Format Checker
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Ruff
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff Format
run: |
ruff format --line-length 120 --check . --exclude xray_api,app/db/migrations/versions