-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
接入ruff、black与isort并配置pre-commit (#46)
* 接入ruff、black与isort并配置pre-commit * 修复导入错误
- Loading branch information
Showing
16 changed files
with
1,692 additions
and
999 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
default_install_hook_types: [pre-commit, prepare-commit-msg] | ||
ci: | ||
autofix_commit_msg: ":rotating_light: auto fix by pre-commit hooks" | ||
autofix_prs: true | ||
autoupdate_branch: master | ||
autoupdate_schedule: monthly | ||
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.0.292 | ||
hooks: | ||
- id: ruff | ||
args: [--fix] | ||
stages: [commit] | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
stages: [commit] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
stages: [commit] | ||
|
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
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,2 +1,2 @@ | ||
from .client import ApiClient as ApiClient | ||
from .model import * | ||
from .client import ApiClient as ApiClient |
Oops, something went wrong.