Replace isort and black with ruff (#17620)

Ruff now has decent parity with black and isort, so this is going to just save us a bunch of time
This commit is contained in:
Quentin Gliech
2024-08-30 10:07:46 +02:00
committed by GitHub
parent 89801e04ca
commit cdd5979129
11 changed files with 56 additions and 440 deletions

View File

@@ -29,17 +29,9 @@ jobs:
with:
install-project: "false"
- name: Import order (isort)
- name: Run ruff
continue-on-error: true
run: poetry run isort .
- name: Code style (black)
continue-on-error: true
run: poetry run black .
- name: Semantic checks (ruff)
continue-on-error: true
run: poetry run ruff --fix .
run: poetry run ruff check --fix .
- run: cargo clippy --all-features --fix -- -D warnings
continue-on-error: true
@@ -49,4 +41,4 @@ jobs:
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Attempt to fix linting"
commit_message: "Attempt to fix linting"