Skip to content

Commit 57d6e32

Browse files
committed
Disable pylint unsubscriptable-object check
This check overlaps with `mypy` and it had some false positives in the past, so better to disable it. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 1ecfdcb commit 57d6e32

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cookiecutter/{{cookiecutter.github_repo_name}}/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ disable = [
131131
# disabled because it conflicts with isort
132132
"wrong-import-order",
133133
"ungrouped-imports",
134+
# pylint's unsubscriptable check is buggy and is not needed because
135+
# it is a type-check, for which we already have mypy.
136+
"unsubscriptable-object",
134137
]
135138

136139
[tool.pytest.ini_options]

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ disable = [
118118
# disabled because it conflicts with isort
119119
"wrong-import-order",
120120
"ungrouped-imports",
121+
# pylint's unsubscriptable check is buggy and is not needed because
122+
# it is a type-check, for which we already have mypy.
123+
"unsubscriptable-object",
121124
]
122125

123126
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)