From e507a4d87ec80e706ac0c8ce2d23bd28006cbbbc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 24 Apr 2023 19:50:25 +0000 Subject: Fix a false positive for ``bad-dunder-name`` when there is a user-defined ``__index__`` method. (#8619) (#8622) Closes #8613 (cherry picked from commit f223c6de3a39eae6d1c76e30b55da28639dd8777) Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com> --- doc/whatsnew/fragments/8613.false_positive | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/whatsnew/fragments/8613.false_positive (limited to 'doc') diff --git a/doc/whatsnew/fragments/8613.false_positive b/doc/whatsnew/fragments/8613.false_positive new file mode 100644 index 000000000..80d28e9c2 --- /dev/null +++ b/doc/whatsnew/fragments/8613.false_positive @@ -0,0 +1,3 @@ +Fix a false positive for ``bad-dunder-name`` when there is a user-defined ``__index__`` method. + +Closes #8613 -- cgit v1.2.1 From 4350c6fd7a955892712e2bf7a78adf4531e483b4 Mon Sep 17 00:00:00 2001 From: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com> Date: Thu, 27 Apr 2023 19:14:11 +0200 Subject: Added escaping of vertical bar character in annotation labels (#8610) (#8631) --- doc/whatsnew/fragments/8603.bugfix | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 doc/whatsnew/fragments/8603.bugfix (limited to 'doc') diff --git a/doc/whatsnew/fragments/8603.bugfix b/doc/whatsnew/fragments/8603.bugfix new file mode 100644 index 000000000..1a1025c4b --- /dev/null +++ b/doc/whatsnew/fragments/8603.bugfix @@ -0,0 +1,3 @@ +``pyreverse``: added escaping of vertical bar character in annotation labels produced by DOT printer to ensure it is not treated as field separator of record-based nodes. + +Closes #8603 -- cgit v1.2.1 From 0b5defa5cfa4662d76cb01c90893c38428e3513c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 28 Apr 2023 17:27:59 +0000 Subject: [tomlkit] Limit the maximum version of tomlkit (#8633) (#8635) (cherry picked from commit a59f3d588a72ec4e5702f988064dd62bb408ccb8) Co-authored-by: Pierre Sassoulas --- doc/whatsnew/fragments/8632.bugfix | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/whatsnew/fragments/8632.bugfix (limited to 'doc') diff --git a/doc/whatsnew/fragments/8632.bugfix b/doc/whatsnew/fragments/8632.bugfix new file mode 100644 index 000000000..25619d412 --- /dev/null +++ b/doc/whatsnew/fragments/8632.bugfix @@ -0,0 +1,4 @@ +tomlkit max version was set to 0.11.7 following a +regression in tomlkit 0.11.8. + +Closes #8632 -- cgit v1.2.1 From fd60b7284a78e3fe371dd90566f0cc316deaf4c4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 30 Apr 2023 15:52:35 +0000 Subject: Make sure a ``tool`` table is created in ``toml`` generation (#8638) (#8640) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Pierre Sassoulas (cherry picked from commit 434d49f69a65adf75c86dd9629ffbb6d8300df67) Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> --- doc/exts/pylint_options.py | 4 +++- doc/user_guide/configuration/all-options.rst | 6 +++--- doc/whatsnew/fragments/8632.bugfix | 4 ---- 3 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 doc/whatsnew/fragments/8632.bugfix (limited to 'doc') diff --git a/doc/exts/pylint_options.py b/doc/exts/pylint_options.py index f402125a7..2e6be23e2 100644 --- a/doc/exts/pylint_options.py +++ b/doc/exts/pylint_options.py @@ -70,8 +70,10 @@ def _create_checker_section( checker_string += get_rst_title(f"``{checker.capitalize()}`` **Checker**", "-") toml_doc = tomlkit.document() + tool_table = tomlkit.table(is_super_table=True) + toml_doc.add(tomlkit.key("tool"), tool_table) pylint_tool_table = tomlkit.table(is_super_table=True) - toml_doc.add(tomlkit.key(["tool", "pylint"]), pylint_tool_table) + tool_table.add(tomlkit.key("pylint"), pylint_tool_table) checker_table = tomlkit.table() diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst index 2cbc3f483..ecdfc9ef5 100644 --- a/doc/user_guide/configuration/all-options.rst +++ b/doc/user_guide/configuration/all-options.rst @@ -171,7 +171,7 @@ Standard Checkers """""""""""" *Minimum Python version to use for version dependent checks. Will default to the version used to run pylint.* -**Default:** ``(3, 10)`` +**Default:** ``(3, 11)`` --recursive @@ -233,7 +233,7 @@ Standard Checkers confidence = ["HIGH", "CONTROL_FLOW", "INFERENCE", "INFERENCE_FAILURE", "UNDEFINED"] - disable = ["consider-using-augmented-assign"] + disable = ["raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored", "suppressed-message", "useless-suppression", "deprecated-pragma", "use-symbolic-message-instead", "consider-using-augmented-assign"] enable = [] @@ -271,7 +271,7 @@ Standard Checkers persistent = true - py-version = [3, 10] + py-version = [3, 11] recursive = false diff --git a/doc/whatsnew/fragments/8632.bugfix b/doc/whatsnew/fragments/8632.bugfix deleted file mode 100644 index 25619d412..000000000 --- a/doc/whatsnew/fragments/8632.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -tomlkit max version was set to 0.11.7 following a -regression in tomlkit 0.11.8. - -Closes #8632 -- cgit v1.2.1 From 62083dc1f197712e440128620541e5c068d9ccf7 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 5 May 2023 16:41:38 +0200 Subject: [changelog] Add a changelog entry for #8632 --- doc/whatsnew/fragments/8632.bugfix | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/whatsnew/fragments/8632.bugfix (limited to 'doc') diff --git a/doc/whatsnew/fragments/8632.bugfix b/doc/whatsnew/fragments/8632.bugfix new file mode 100644 index 000000000..c6f9c01bf --- /dev/null +++ b/doc/whatsnew/fragments/8632.bugfix @@ -0,0 +1,4 @@ +Fixed a crash when generating a configuration file: ``tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key`` +caused by tomlkit ``v0.11.8``. + +Closes #8632 -- cgit v1.2.1 From fc34a4b6abe56f3ac07ca15d846b1c1955545f85 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 5 May 2023 18:30:34 +0200 Subject: Bump pylint to 2.17.4, update changelog Co-authored-by: Jacob Walls --- doc/whatsnew/2/2.17/index.rst | 31 ++++++++++++++++++++++++++++++ doc/whatsnew/fragments/8603.bugfix | 3 --- doc/whatsnew/fragments/8613.false_positive | 3 --- doc/whatsnew/fragments/8632.bugfix | 4 ---- 4 files changed, 31 insertions(+), 10 deletions(-) delete mode 100644 doc/whatsnew/fragments/8603.bugfix delete mode 100644 doc/whatsnew/fragments/8613.false_positive delete mode 100644 doc/whatsnew/fragments/8632.bugfix (limited to 'doc') diff --git a/doc/whatsnew/2/2.17/index.rst b/doc/whatsnew/2/2.17/index.rst index 974ebb501..cd14488b7 100644 --- a/doc/whatsnew/2/2.17/index.rst +++ b/doc/whatsnew/2/2.17/index.rst @@ -29,6 +29,37 @@ so we find problems before the actual release. .. towncrier release notes start +What's new in Pylint 2.17.4? +---------------------------- +Release date: 2023-05-06 + + +False Positives Fixed +--------------------- + +- Fix a false positive for ``bad-dunder-name`` when there is a user-defined + ``__index__`` method. + + Closes #8613 (`#8613 `_) + + + +Other Bug Fixes +--------------- + +- ``pyreverse``: added escaping of vertical bar character in annotation labels + produced by DOT printer to ensure it is not treated as field separator of + record-based nodes. + + Closes #8603 (`#8603 `_) + +- Fixed a crash when generating a configuration file: + ``tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key`` + caused by tomlkit ``v0.11.8``. + + Closes #8632 (`#8632 `_) + + What's new in Pylint 2.17.3? ---------------------------- Release date: 2023-04-24 diff --git a/doc/whatsnew/fragments/8603.bugfix b/doc/whatsnew/fragments/8603.bugfix deleted file mode 100644 index 1a1025c4b..000000000 --- a/doc/whatsnew/fragments/8603.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -``pyreverse``: added escaping of vertical bar character in annotation labels produced by DOT printer to ensure it is not treated as field separator of record-based nodes. - -Closes #8603 diff --git a/doc/whatsnew/fragments/8613.false_positive b/doc/whatsnew/fragments/8613.false_positive deleted file mode 100644 index 80d28e9c2..000000000 --- a/doc/whatsnew/fragments/8613.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive for ``bad-dunder-name`` when there is a user-defined ``__index__`` method. - -Closes #8613 diff --git a/doc/whatsnew/fragments/8632.bugfix b/doc/whatsnew/fragments/8632.bugfix deleted file mode 100644 index c6f9c01bf..000000000 --- a/doc/whatsnew/fragments/8632.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fixed a crash when generating a configuration file: ``tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key`` -caused by tomlkit ``v0.11.8``. - -Closes #8632 -- cgit v1.2.1