Skip to content

Commit 0d33ec5

Browse files
author
JiayuXu
committed
fix: 修复ruff检查发现的代码质量问题和格式化冲突
- 修复mkdocs.yml YAML语法错误 - 修复异常处理链问题 - 修复导入顺序和未使用变量 - 修复类型检查问题 - 修复可变默认参数问题 - 添加noqa标记忽略测试中的特定规则
1 parent 37c9af8 commit 0d33ec5

55 files changed

Lines changed: 1021 additions & 1008 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ docker-compose*
7575

7676
# Temporary files
7777
tmp
78-
temp
78+
temp

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ CACHE_TTL=60
2121

2222
# Swagger配置
2323
SWAGGER_UI_USERNAME=admin
24-
SWAGGER_UI_PASSWORD=testpass123
24+
SWAGGER_UI_PASSWORD=testpass123

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
22
ignore = E501, W503, E203
33
# 或者使用 extend-ignore,如果你想在默认忽略列表基础上添加
4-
# extend-ignore = E203
4+
# extend-ignore = E203

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ If applicable, add screenshots to help explain your problem.
3333

3434
**Additional context / 附加信息**
3535
Add any other context about the problem here.
36-
在这里添加有关问题的任何其他信息。
36+
在这里添加有关问题的任何其他信息。

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ A clear and concise description of any alternative solutions or features you've
2020

2121
**Additional context / 附加信息**
2222
Add any other context or screenshots about the feature request here.
23-
在这里添加有关功能请求的任何其他信息或截图。
23+
在这里添加有关功能请求的任何其他信息或截图。

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Please describe the tests that you ran to verify your changes.
2828
- [ ] I have made corresponding changes to the documentation / 我已对文档进行了相应的更改
2929
- [ ] My changes generate no new warnings / 我的更改不会产生新的警告
3030
- [ ] I have added tests that prove my fix is effective or that my feature works / 我已添加证明我的修复有效或我的功能有效的测试
31-
- [ ] New and existing unit tests pass locally with my changes / 新的和现有的单元测试在本地通过我的更改
31+
- [ ] New and existing unit tests pass locally with my changes / 新的和现有的单元测试在本地通过我的更改

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
DEBUG: "True"
5454
run: |
5555
uv run pytest tests/test_core_functionality.py tests/test_simple_jwt.py -v --cov=src --cov-report=xml --cov-report=html --cov-report=term-missing
56-
56+
5757
- name: Upload coverage reports
5858
if: matrix.python-version == '3.11'
5959
uses: actions/upload-artifact@v4
@@ -104,7 +104,7 @@ jobs:
104104
runs-on: ubuntu-latest
105105
needs: [test, security]
106106
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
107-
107+
108108
steps:
109109
- name: Checkout code
110110
uses: actions/checkout@v4
@@ -124,4 +124,4 @@ jobs:
124124
uses: actions/upload-artifact@v4
125125
with:
126126
name: python-package-distributions
127-
path: dist/
127+
path: dist/

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,4 +210,4 @@ logs/*.log
210210
!logs/.gitkeep
211211

212212
# Documentation files (internal use only)
213-
IMPROVEMENT_ROADMAP.md
213+
IMPROVEMENT_ROADMAP.md

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ good-names=i,j,k,ex,Run,_,fd,fp
2020
min-similarity-lines=7
2121
ignore-comments=yes
2222
ignore-docstrings=yes
23-
ignore-imports=yes
23+
ignore-imports=yes

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@ After starting the server:
196196
- Swagger UI: http://localhost:8000/docs
197197
- ReDoc: http://localhost:8000/redoc
198198
- Health check: http://localhost:8000/api/v1/base/health
199-
- Version info: http://localhost:8000/api/v1/base/version
199+
- Version info: http://localhost:8000/api/v1/base/version

0 commit comments

Comments
 (0)