summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-22 15:58:14 +0100
committerGitHub <noreply@github.com>2023-03-22 15:58:14 +0100
commit1f2cf716a3e76d8f2a7429d6550460ce8038e6e6 (patch)
tree8c2d8447cd6224793663c18f963d07eb0ec84cc4
parentd64c0cc1484b0cbea5fd3a9dfac4c0d6ddc7d1aa (diff)
downloadpylint-git-1f2cf716a3e76d8f2a7429d6550460ce8038e6e6.tar.gz
Upgrade TODO for pylint 2.X to pylint 3.0 (#8480)
Closes #8335
-rw-r--r--pylint/checkers/variables.py2
-rw-r--r--pylint/reporters/json_reporter.py2
-rw-r--r--pylint/testutils/functional/test_file.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index e240e7f7c..4838b78ce 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -2461,7 +2461,7 @@ class VariablesChecker(BaseChecker):
else_stmt, (nodes.Return, nodes.Raise, nodes.Break, nodes.Continue)
):
return
- # TODO: 2.16: Consider using RefactoringChecker._is_function_def_never_returning
+ # TODO: 3.0: Consider using RefactoringChecker._is_function_def_never_returning
if isinstance(else_stmt, nodes.Expr) and isinstance(
else_stmt.value, nodes.Call
):
diff --git a/pylint/reporters/json_reporter.py b/pylint/reporters/json_reporter.py
index 29df6ba07..a12bece6d 100644
--- a/pylint/reporters/json_reporter.py
+++ b/pylint/reporters/json_reporter.py
@@ -75,7 +75,7 @@ class JSONReporter(BaseJSONReporter):
TODO: 3.0: Remove this JSONReporter in favor of the new one handling abs-path
and confidence.
- TODO: 2.16: Add a new JSONReporter handling abs-path, confidence and scores.
+ TODO: 3.0: Add a new JSONReporter handling abs-path, confidence and scores.
(Ultimately all other breaking change related to json for 3.0).
"""
diff --git a/pylint/testutils/functional/test_file.py b/pylint/testutils/functional/test_file.py
index 85a72daa9..b7a84b752 100644
--- a/pylint/testutils/functional/test_file.py
+++ b/pylint/testutils/functional/test_file.py
@@ -62,7 +62,7 @@ class FunctionalTestFile:
def __init__(self, directory: str, filename: str) -> None:
self._directory = directory
self.base = filename.replace(".py", "")
- # TODO: 2.x: Deprecate FunctionalTestFile.options and related code
+ # TODO: 3.0: Deprecate FunctionalTestFile.options and related code
# We should just parse these options like a normal configuration file.
self.options: TestFileOptions = {
"min_pyver": (2, 5),