Skip to content

Commit

Permalink
replace black / isort with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
DennyDai committed Dec 18, 2023
1 parent 1a77735 commit 995bd93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install Package
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pytest ruff black isort
python3 -m pip install --upgrade pytest ruff
python3 -m pip install -e .
- name: Run pytest
if: matrix.task == 'test'
Expand All @@ -37,8 +37,7 @@ jobs:
- name: Run formatter
if: matrix.task == 'format'
run: |
python3 -m isort . --profile black --check-only --diff
python3 -m black . --check
python3 -m ruff format . --check
- name: Run linter
if: matrix.task == 'lint'
run: |
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ dependencies = [

[tool.setuptools.packages.find]
where = ["src"]

[tool.ruff]
extend-select = ["I", "N", "UP", "B"]

0 comments on commit 995bd93

Please sign in to comment.