Skip to content

feat(pypi): Remove isort and use ruff to handle all styling #29

feat(pypi): Remove isort and use ruff to handle all styling

feat(pypi): Remove isort and use ruff to handle all styling #29

Workflow file for this run

name: Style
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: ['ubuntu-latest']
python-version: ["3.10"]
runs-on: '${{ matrix.os }}'
steps:
- 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 -e ".[dev]"
- name: Examine formatting with ruff
run: |
python -m ruff check ./leetcode_study_tool
- name: Check formatting
run: |
python -m ruff format ./leetcode_study_tool --check