Add ruff + black to CI as a lint/format check - #56
Open
qiaobochi040726-source wants to merge 3 commits into
Open
Add ruff + black to CI as a lint/format check#56qiaobochi040726-source wants to merge 3 commits into
qiaobochi040726-source wants to merge 3 commits into
Conversation
- Add [tool.ruff] and [tool.black] config (line-length 100, py310) and dev optional-dependencies for ruff/black. - Add .github/workflows/lint.yml running ruff check and black --check on push and pull_request across Python 3.10/3.11. - Fix all ruff findings: explicit check=False on subprocess.run, drop redundant quotes/Optional in annotations, sort imports, combine nested withs, use next() instead of [0]; noqa BLE001 for the intentional catch-all in the aggregator. - Format all source and test files with black.
Member
|
CI failing, recheck |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #32
验证:ruff check All checks passed;black --check 14 files unchanged;pytest 15 passed。