Skip to content

Commit cb9c124

Browse files
authored
Merge pull request lightspeed-core#178 from asamal4/enforce-ut-mock-ban
[LEADS-226] chore: enforce pytest usage instead of unittest
2 parents 1e16a7f + b8f2a1e commit cb9c124

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,11 @@ load-plugins = ["pylint_pydantic"]
100100
init-hook = "import sys; sys.path.append('.')"
101101

102102
[tool.ruff]
103-
[tool.ruff.lint.flake8-tidy-imports]
104-
banned-api = { "unittest" = { msg = "use pytest instead of unittest" }, "unittest.mock" = { msg = "use pytest-mock instead of unittest.mock" } }
103+
[tool.ruff.lint]
104+
extend-select = ["TID251"]
105+
[tool.ruff.lint.flake8-tidy-imports.banned-api]
106+
unittest = { msg = "use pytest instead of unittest" }
107+
"unittest.mock" = { msg = "use pytest-mock instead of unittest.mock" }
105108

106109
[build-system]
107110
requires = ["hatchling"]

0 commit comments

Comments
 (0)