Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-case-conflict
Expand All @@ -18,19 +18,19 @@ repos:
- id: requirements-txt-fixer

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7
rev: v0.14.10
hooks:
- id: ruff-check
args: [ --fix ]

- repo: https://github.com/PyCQA/autoflake
rev: v2.0.2
rev: v2.3.1
hooks:
- id: autoflake
args: [--remove-all-unused-imports, --in-place]

- repo: https://github.com/pycqa/isort
rev: 5.13.2 # 选一个稳定版本
rev: 7.0.0 # 选一个稳定版本
hooks:
- id: isort
args:
Expand All @@ -39,7 +39,7 @@ repos:
additional_dependencies: [] # 需要插件时在这里加

- repo: https://github.com/psf/black
rev: 24.3.0
rev: 25.12.0
hooks:
- id: black
name: Format code
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ line_length = 119

[tool.ruff]
line-length = 320 # TODO

[tool.ruff.lint]
select = [
"E", # Pycodestyle Errors (Structural/Fundamental Errors like bad indentation)
"F", # Pyflakes (Core Errors: Unused imports, undefined names)
Expand Down