lint: replace black/isort/flake8 with ruff (#2992)

* lint: replace isort/flake8 with ruff

* update ruff links

* remove stale isort reference

* update CHANGELOG

* address review

* remove unused imports

* remove unnecessary list comprehension

* remove quotes from type annotation

* use dict.get instead of if-else block

* remove unnecessary utf-8 encoding declaration

* Revert "remove unused imports"

This reverts commit 18ba50a22b.

* skip check for unused imports

* fix UP036 Version block is outdated for minimum Python version

* add TODO comment for unused imports

* replace black with ruff

* address review comments
This commit is contained in:
Mike Hunhoff
2026-04-07 12:10:41 -06:00
committed by GitHub
parent ac1cba74b3
commit ed7e0cd77d
52 changed files with 896 additions and 781 deletions

View File

@@ -52,12 +52,8 @@ jobs:
pip install -e .[dev,scripts]
- name: Lint with ruff
run: pre-commit run ruff
- name: Lint with isort
run: pre-commit run isort --show-diff-on-failure
- name: Lint with black
run: pre-commit run black --show-diff-on-failure
- name: Lint with flake8
run: pre-commit run flake8 --hook-stage manual
- name: Check formatting with ruff
run: pre-commit run ruff-format --show-diff-on-failure
- name: Check types with mypy
run: pre-commit run mypy --hook-stage manual
- name: Check imports against dependencies