Skip to content

Commit 90a2835

Browse files
committed
🔧 Update pyright execution environments and refine per-file ignores in ruff
1 parent fba9898 commit 90a2835

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ reportUnknownMemberType = false
6060
reportMissingTypeStubs = false
6161
pythonVersion = "3.12"
6262

63+
[[tool.pyright.executionEnvironments]]
64+
root = "src/database/models"
65+
reportUninitializedInstanceVariable = false
66+
6367
[tool.ruff]
6468
target-version = "py312"
6569
line-length = 120
@@ -80,7 +84,6 @@ docstring-code-line-length = "dynamic"
8084

8185
[tool.ruff.lint]
8286
select = ["ALL"]
83-
per-file-ignores = { "src/database/migrations/*"= ["INP001", "ARG001"], "tests/*"= ["S101"], "scripts/**" = ["T201"] }
8487
extend-ignore = [
8588
"N999",
8689
"D104",
@@ -110,6 +113,11 @@ extend-ignore = [
110113
"RUF200"
111114
]
112115

116+
[tool.ruff.lint.per-file-ignores]
117+
"src/database/migrations/*"= ["INP001", "ARG001", "E501"]
118+
"tests/*"= ["S101"]
119+
"scripts/**" = ["T201"]
120+
113121
[tool.aerich]
114122
tortoise_orm = "src.database.config.TORTOISE_ORM"
115123
location = "./src/database/migrations"

0 commit comments

Comments
 (0)