summaryrefslogtreecommitdiff
path: root/pylint/lint
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2022-05-01 19:56:15 +0200
committerGitHub <noreply@github.com>2022-05-01 19:56:15 +0200
commit76b853836801188667cf47f45b45493ef27d178c (patch)
treeb7e842c4b2b1aefde1740f5d77f3b4b77578f742 /pylint/lint
parente1769bd44631374eab4f9176f51cc64a7051f316 (diff)
downloadpylint-git-76b853836801188667cf47f45b45493ef27d178c.tar.gz
Disable fixme for internal uses before we make it optional in #3512 (#6482)
Diffstat (limited to 'pylint/lint')
-rw-r--r--pylint/lint/parallel.py2
-rw-r--r--pylint/lint/pylinter.py12
2 files changed, 6 insertions, 8 deletions
diff --git a/pylint/lint/parallel.py b/pylint/lint/parallel.py
index 60610b02e..435bbb35e 100644
--- a/pylint/lint/parallel.py
+++ b/pylint/lint/parallel.py
@@ -56,7 +56,7 @@ def _worker_check_single_file(
file_item: FileItem,
) -> tuple[
int,
- # TODO: 3.0: Make this only str after deprecation has been removed # pylint: disable=fixme
+ # TODO: 3.0: Make this only str after deprecation has been removed
str | None,
str,
str | None,
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py
index fd7e5d89c..e9195f86e 100644
--- a/pylint/lint/pylinter.py
+++ b/pylint/lint/pylinter.py
@@ -235,7 +235,6 @@ class PyLinter(
options: Options = (),
reporter: reporters.BaseReporter | reporters.MultiReporter | None = None,
option_groups: tuple[tuple[str, str], ...] = (),
- # pylint: disable-next=fixme
# TODO: Deprecate passing the pylintrc parameter
pylintrc: str | None = None, # pylint: disable=unused-argument
) -> None:
@@ -314,7 +313,7 @@ class PyLinter(
@property
def option_groups(self) -> tuple[tuple[str, str], ...]:
- # TODO: 3.0: Remove deprecated attribute # pylint: disable=fixme
+ # TODO: 3.0: Remove deprecated attribute
warnings.warn(
"The option_groups attribute has been deprecated and will be removed in pylint 3.0",
DeprecationWarning,
@@ -706,7 +705,6 @@ class PyLinter(
"""
self.initialize()
if not isinstance(files_or_modules, (list, tuple)):
- # pylint: disable-next=fixme
# TODO: 3.0: Remove deprecated typing and update docstring
warnings.warn(
"In pylint 3.0, the checkers check function will only accept sequence of string",
@@ -871,7 +869,7 @@ class PyLinter(
return
self.reporter.on_set_current_module(modname or "", filepath)
if modname is None:
- # TODO: 3.0: Remove all modname or ""'s in this method # pylint: disable=fixme
+ # TODO: 3.0: Remove all modname or ""'s in this method
warnings.warn(
(
"In pylint 3.0 modname should be a string so that it can be used to "
@@ -899,7 +897,7 @@ class PyLinter(
for c in _checkers
if isinstance(c, checkers.BaseTokenChecker) and c is not self
]
- # TODO: 3.0: Remove deprecated for-loop # pylint: disable=fixme
+ # TODO: 3.0: Remove deprecated for-loop
for c in _checkers:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
@@ -918,7 +916,7 @@ class PyLinter(
rawcheckers = [
c for c in _checkers if isinstance(c, checkers.BaseRawFileChecker)
]
- # TODO: 3.0: Remove deprecated if-statement # pylint: disable=fixme
+ # TODO: 3.0: Remove deprecated if-statement
for c in _checkers:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
@@ -1006,7 +1004,7 @@ class PyLinter(
ast_node, walker, rawcheckers, tokencheckers
)
- # TODO: 3.0: Remove unnecessary assertion # pylint: disable=fixme
+ # TODO: 3.0: Remove unnecessary assertion
assert self.current_name
self.stats.by_module[self.current_name]["statement"] = (