Skip to content

Commit 65b4640

Browse files
committed
Reduce list of ignored ruff rules
1 parent 16e8fbc commit 65b4640

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: 2024-present MTS PJSC
2+
# SPDX-License-Identifier: Apache-2.0

data_rentgen/db/migrations/versions/2024-06-27_5f8fff06dd76_create_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def upgrade() -> None:
4040
"search_vector",
4141
postgresql.TSVECTOR(),
4242
sa.Computed(
43-
"to_tsvector('simple'::regconfig, COALESCE(external_id, ''::text) || ' ' || (translate(external_id, '/.', ' ')))",
43+
"to_tsvector('simple'::regconfig, "
44+
"COALESCE(external_id, ''::text) || ' ' || (translate(external_id, '/.', ' ')))",
4445
persisted=True,
4546
),
4647
),
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: 2024-present MTS PJSC
2+
# SPDX-License-Identifier: Apache-2.0

data_rentgen/db/utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-FileCopyrightText: 2024-present MTS PJSC
2+
# SPDX-License-Identifier: Apache-2.0

pyproject.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,22 +197,15 @@ ignore = ["ARG", "ANN", "D", "COM812", "TD", "FIX002", "RUF005"]
197197
"data_rentgen/server/schemas/*" = ["TC"]
198198
"data_rentgen/server/middlewares/*" = ["TC"]
199199
"data_rentgen/dto/*" = ["TC"]
200-
"data_rentgen/server/providers/auth/*" = ["FA102"]
201-
"data_rentgen/server/api/*" = ["B008"]
202-
"data_rentgen/db/utils/*" = ["INP001"]
203-
"data_rentgen/db/utils/uuid.py" = ["A005"]
204200
"data_rentgen/db/scripts/*" = ["TC"]
205201
"data_rentgen/db/repositories/*" = ["TC", "PLR0913"]
202+
"data_rentgen/db/migrations/*" = ["N999", "S"]
206203
"data_rentgen/db/models/*" = ["TC"]
207-
"data_rentgen/db/migrations/*" = ["INP001", "E501", "S608"]
208-
"data_rentgen/consumer/*" = ["TC", "B008"]
204+
"data_rentgen/consumer/*" = ["TC"]
209205
"data_rentgen/openlineage/*" = ["N815"]
210-
"data_rentgen/utils/uuid.py" = ["A005"]
211-
"data_rentgen/logging/*" = ["A005"]
212206

213207

214208
"tests/*" = ["S", "A", "E501", "FBT001", "PD901", "SIM300", "PLR0913", "PLR2004", "SLF001", "RET504", "PLR0915"]
215-
"tests/test_server/fixtures/*" = ["INP001"]
216209

217210
[tool.ruff.lint.flake8-pytest-style]
218211
parametrize-names-type = "list"

tests/test_server/fixtures/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)