mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
add tests exclusion E402 rule (#73)
This commit is contained in:
@@ -42,3 +42,4 @@ order-by-type = true
|
||||
"backend/app/api/v1/*.py" = ["TCH"]
|
||||
"backend/app/models/*.py" = ["TCH003"]
|
||||
"backend/app/**/__init__.py" = ["F401"]
|
||||
"backend/app/tests/*.py" = ["E402"]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# 导入所有模型,并将 Base 放在最前面, 以便 Base 拥有它们
|
||||
# imported by Alembic
|
||||
"""
|
||||
from backend.app.database.base_class import MappedBase # F401
|
||||
from backend.app.database.base_class import MappedBase
|
||||
from backend.app.models.sys_api import Api
|
||||
from backend.app.models.sys_casbin_rule import CasbinRule
|
||||
from backend.app.models.sys_dept import Dept
|
||||
|
||||
Reference in New Issue
Block a user