Skip to content

Commit 4c486c5

Browse files
committed
Fix ruff: TCH was renamed TC in 0.8
1 parent 3874df6 commit 4c486c5

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

app/utils/loggers_tools/matrix_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
from logging import StreamHandler
3-
4-
from typing_extensions import override
3+
from typing import override
54

65
from app.utils.communication.matrix import Matrix
76

app/utils/loggers_tools/s3_handler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import string
22
from datetime import UTC, datetime
33
from logging import StreamHandler
4-
5-
from typing_extensions import override
4+
from typing import override
65

76
from app.types.s3_access import S3Access
87
from app.utils.tools import get_random_string

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ minimal-titan-version-code = 139
2525
# Same as Black.
2626
line-length = 88
2727
indent-width = 4
28-
target-version = "py311"
28+
target-version = "py312"
2929

30-
[tool.lint]
30+
[tool.ruff.lint]
3131
select = [
3232
"FAST",
3333
"YTT",
@@ -70,7 +70,7 @@ select = [
7070
"FURB",
7171
"RUF",
7272
"TRY",
73-
"TCH",
73+
"TC",
7474
]
7575
# We may want to enable "ERA" to found commented-out code
7676
ignore = [
@@ -98,7 +98,7 @@ ignore = [
9898
fixable = ["ALL"]
9999
unfixable = []
100100

101-
[tool.ruff.per-file-ignores]
101+
[tool.ruff.lint.per-file-ignores]
102102
# Allow `assert` and hardcoded passwords for tests.
103103
# Ignore PLW0603 to be able to define global models from init fixture
104104
"tests/*" = ["S101", "S105", "S106", "ASYNC230", "PLW0603"]
@@ -115,7 +115,7 @@ unfixable = []
115115
# Allow complexe methods for auth endpoints
116116
"app/core/auth/endpoints_auth.py" = ["C901"]
117117

118-
[tool.ruff.mccabe]
118+
[tool.ruff.lint.mccabe]
119119
# Flag errors (`C901`) whenever the complexity level exceeds 18.
120120
max-complexity = 18
121121

0 commit comments

Comments
 (0)