Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

【杂项】将 Linter 和 Formatter 迁移到 Ruff #2

Merged
merged 7 commits into from
Apr 25, 2024
Merged

Conversation

Dragon1573
Copy link
Owner

简介

Ruff 是一个用 Rust 开发而成的 Python 高性能 静态代码分析格式化 工具,它一次性地重构并集成了 isort black flake8 flake8-bugbear 的功能,让本项目的依赖可以尽可能简单。

- 移除 isort, black, flake8, flake8-bugbear
- 新增 ruff

Signed-off-by: 是蓝兔哟~ <[email protected]>
- 将 Hooks 从 Black 迁移到 Ruff

Signed-off-by: 是蓝兔哟~ <[email protected]>
@Dragon1573 Dragon1573 self-assigned this Apr 25, 2024
- `macos-latest` 现在已迁移到 `arm64` 架构
- 增加更多系统/架构的编译构建

Signed-off-by: 是蓝兔哟~ <[email protected]>
@Dragon1573
Copy link
Owner Author

建议的编辑:

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index c9cdffe..ef1ff18 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -12,7 +12,7 @@ jobs:
 
     strategy:
       matrix:
-        os: [windows-latest, ubuntu-latest, macos-latest-large]
+        os: [windows-latest, ubuntu-latest]
 
       fail-fast: false
 
@@ -158,7 +158,7 @@ jobs:
 
     strategy:
       matrix:
-        os: [macos-latest-xlarge]
+        os: [macos-latest]
 
       fail-fast: false
 

@Dragon1573 Dragon1573 merged commit c1778b0 into main Apr 25, 2024
4 checks passed
@Dragon1573 Dragon1573 deleted the chore/ruff branch April 25, 2024 06:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant