This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
【杂项】将 Linter 和 Formatter 迁移到 Ruff (#2)
- 移除 `isort`, `black`, `flake8`, `flake8-bugbear` - 引入 `ruff` - 重新安装 Git Pre-commit Hooks - 更新 Workflows 配置文件 - `macos-latest` 迁移到 arm64 架构 - 新增 Windows x86 构建
- Loading branch information
1 parent
bb43b10
commit c1778b0
Showing
5 changed files
with
197 additions
and
183 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
repos: | ||
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster | ||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 24.3.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.4.1 | ||
hooks: | ||
- id: black | ||
# It is recommended to specify the latest version of Python | ||
# supported by your project here, or alternatively use | ||
# pre-commit's default_language_version, see | ||
# https://pre-commit.com/#top_level-default_language_version | ||
language_version: python3.12 | ||
# Run the linter. | ||
- id: ruff | ||
args: | ||
- "--line-length=120" | ||
- "--fix" | ||
- "--verbose" | ||
# Run the formatter. | ||
- id: ruff-format |
Oops, something went wrong.