summaryrefslogtreecommitdiff
path: root/doc/whatsnew
Commit message (Collapse)AuthorAgeFilesLines
* Make sure a ``tool`` table is created in ``toml`` generation (#8638)Daniël van Noord2023-04-301-4/+0
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false negative for calling module-level function before definition (#8494)Jacob Walls2023-04-291-0/+3
|
* [tomlkit] Limit the maximum version of tomlkit (#8633)Pierre Sassoulas2023-04-281-0/+4
|
* Added escaping of vertical bar character in annotation labels (#8610)ViRuSTriNiTy2023-04-261-0/+3
|
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-0/+3
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* Merge maintenance 2.17.x in main (#8621)Pierre Sassoulas2023-04-241-0/+58
|\
| * Merge branch 'maintenance/2.17.x' following 2.17.3 releasePierre Sassoulas2023-04-241-0/+58
| |\
| | * Bump pylint to 2.17.3, update changelog (#8620)v2.17.3Pierre Sassoulas2023-04-2410-28/+58
| | |
| | * Improve output of `consider-using-generator` message for `min()` calls with ↵github-actions[bot]2023-04-171-0/+3
| | | | | | | | | | | | | | | | | | | | | `default` keyword (#8582) (#8583) (cherry picked from commit 4a485e28f0a5118b37550123c79f1f6d0dec42a4) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
| | * Fix false positive for ``keyword-arg-before-vararg`` (#8571) (#8578)github-actions[bot]2023-04-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. Closes #8570 (cherry picked from commit 56fa5dce747a46f1dcba6eca003bb22fcc347247) Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
| | * Fix `unused-import` to check`dummy-variables-rgx` (#8566) (#8568)github-actions[bot]2023-04-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Resolve #8500 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit 0cd41b1fb15e31eb311b61f93bc27f7cacc2f7ac) Co-authored-by: RSTdefg <34202999+RSTdefg@users.noreply.github.com>
| | * Fix false positive for ``positional-only-arguments-expected`` when a ↵github-actions[bot]2023-04-101-0/+3
| | | | | | | | | | | | | | | | | | | | | function contains both a positional-only parameter that has a default value, and ``**kwargs``. (#8556) (#8560) (cherry picked from commit db17860fd61154c59f3acc13ff34b120cc5ba091) Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
| | * Fix isinstance-second-argument-not-valid-type for union types with NoneRogdham2023-04-071-0/+3
| | | | | | | | | | | | (cherry picked from commit b5f2b01635edd23fecc1546f3fdb2a41e6a51995)
| | * Fix typelias `invalid-name` false positives for Union variables without ↵github-actions[bot]2023-04-071-0/+4
| | | | | | | | | | | | | | | | | | | | | assignment. (#8541) (#8548) (cherry picked from commit cb255eaaed8bba6bec1f7bf5d4cde15821c1dd46) Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
| | * Do not emit `logging-not-lazy` for explicitly concatenated strings. (#8546)Yilei "Dolee" Yang2023-04-071-0/+3
| | | | | | | | | | | | (cherry picked from commit eeddd667a6e73ef58fb47cdda154c1751f0ffe71)
| | * Fix check unused arguments false positive bug (#8542) (#8545)github-actions[bot]2023-04-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: the special method `__new__` must match the arguments of the `__init__` method even if `__new__` method does not use them. This generate `unused-argument` for the `__new__` method. Fix: the unused arguments check should not be done on the `__new__` method if the `__init__` method is defined in the same class. Update `unused-argument` test to include a check for the case of `__init__` and `__new__` being defined in a class but `__new__` does not use all of the argument. This is fine because `__new__` must have the same argument of `__init__`. Update with a second check in case of `__init__` being not defined in a class. Then the unused arguments check must be done on `__new__`. Fixes https://github.com/pylint-dev/pylint/issues/3670 (cherry picked from commit 156da64d0fb4c06e15c5b619b91ce550d594a770) Co-authored-by: Théo Battrel <theo.util@protonmail.ch>
* | | Fix a false positive for ``bad-dunder-name`` when there is a user-defined ↵Mark Byrne2023-04-241-0/+3
|/ / | | | | | | | | ``__index__`` method. (#8619) Closes #8613
* | Optimize `is_trailing_comma()` (#8606)Jacob Walls2023-04-231-1/+2
| | | | | | Skip is_trailing_comma() call unless `trailing-comma-tuple` enabled
* | Add news fragmentJacob Walls2023-04-231-0/+3
| |
* | Modified all occurences of "a f-string" to "an f-string"Elazrod562023-04-201-1/+1
| |
* | Fix FP `used-before-assignment` for statements guarded under same test (#8581)Jacob Walls2023-04-161-0/+4
| |
* | Improve output of `consider-using-generator` message for `min()` calls with ↵Jacob Walls2023-04-161-0/+3
| | | | | | | | `default` keyword (#8582)
* | Fix `used-before-assignment` TYPE_CHECKING false negatives (#8431)Zen Lee2023-04-151-0/+4
| | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* | Fix false negative for no-value-for-parameter: positional-only args and ↵Mark Byrne2023-04-141-0/+3
| | | | | | | | **kwargs (#8575)
* | Fix false positive for ``keyword-arg-before-vararg`` (#8571)Mark Byrne2023-04-131-0/+3
| | | | | | | | | | * Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. Closes #8570
* | Fix `unused-import` to check`dummy-variables-rgx` (#8566)RSTdefg2023-04-121-0/+3
| | | | | | | | | | Resolve #8500 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Fix false positive for ``positional-only-arguments-expected`` when a ↵Mark Byrne2023-04-091-0/+3
| | | | | | | | function contains both a positional-only parameter that has a default value, and ``**kwargs``. (#8556)
* | Also check the typealias naming style for TypeAlias variables defined in ↵Yilei "Dolee" Yang2023-04-071-0/+3
| | | | | | | | functions. (#8537)
* | Fix isinstance-second-argument-not-valid-type for union types with NoneRogdham2023-04-071-0/+3
| |
* | Fix typelias `invalid-name` false positives for Union variables without ↵Yilei "Dolee" Yang2023-04-071-0/+4
| | | | | | | | assignment. (#8541)
* | Do not emit `logging-not-lazy` for explicitly concatenated strings. (#8546)Yilei "Dolee" Yang2023-04-071-0/+3
| |
* | Fix check unused arguments false positive bug (#8542)Théo Battrel2023-04-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: the special method `__new__` must match the arguments of the `__init__` method even if `__new__` method does not use them. This generate `unused-argument` for the `__new__` method. Fix: the unused arguments check should not be done on the `__new__` method if the `__init__` method is defined in the same class. Update `unused-argument` test to include a check for the case of `__init__` and `__new__` being defined in a class but `__new__` does not use all of the argument. This is fine because `__new__` must have the same argument of `__init__`. Update with a second check in case of `__init__` being not defined in a class. Then the unused arguments check must be done on `__new__`. Fixes https://github.com/pylint-dev/pylint/issues/3670
* | Handle patterns in ignored-modules when checking for no-name-in-module (#7579)Daniel Mouritzen2023-04-031-0/+3
| | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com>
* | Merge 'maintenance/2.17.x' in main following 2.17.2 releasePierre Sassoulas2023-04-031-0/+36
|\ \ | |/
| * Bump pylint to 2.17.2, update changelog (#8533)v2.17.2Pierre Sassoulas2023-04-035-16/+36
| |
| * [Backport maintenance/2.17.x] Add regression test for #7506 (#8531)github-actions[bot]2023-04-031-0/+3
| | | | | | | | | | | | | | | | | | | | * Add regression test for #7506 (#8432) (cherry picked from commit 1fa16c2d8a7e97223541069731d28896f651b1ab) --------- Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
| * [pyreverse] Bugfix: strip "/" at the end of the file (#8517) (#8528)github-actions[bot]2023-04-021-0/+3
| | | | | | | | | | | | | | Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit 6ad17fb758361f50210f4cb5a4fd34494034f4e0) Co-authored-by: Alvaro Frias <alvaro.frias@eclypsium.com>
| * [Backport maintenance/2.17.x] Allow integers in TypeAlias names. (#8507)github-actions[bot]2023-03-281-0/+5
| | | | | | | | Co-authored-by: Stephane Odul <1504511+sodul@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
| * Fix `unnecessary-lambda` false positive for lambdas using its parameters in ↵github-actions[bot]2023-03-281-0/+5
| | | | | | | | | | | | | | | | | | their body (#8498) (#8506) Fixes #8496 (cherry picked from commit b62143611a4713e4729ce9ecb6398f5f94d82f1a) Co-authored-by: cherryblossom <31467609+cherryblossom000@users.noreply.github.com>
| * Don't consider ``Union`` to always be a type alias (#8489)Daniël van Noord2023-03-231-0/+3
| | | | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit 07127ee75f3456920ff5117cdbaf8697744b6cfc)
* | Add regression test for #7506 (#8432)Jacob Walls2023-04-031-0/+3
| |
* | [pyreverse] Bugfix: strip "/" at the end of the file (#8517)Alvaro Frias2023-04-021-0/+3
| | | | | | | | Signed-off-by: Alvaro Frias Garay <alvaro.frias@eclypsium.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Add Pyreverse option to exclude standalone nodes (#8520)Nick Drozd2023-04-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | * Add Pyreverse option to exclude standalone nodes * Add test * Add package test * Fix test names * Clean up test files
* | [changelog] Classify all non user-facing changes as 'internal'Pierre Sassoulas2023-04-018-5/+9
| |
* | [doc] Fix missing spaces in 2.13's whatsnew (#8519)Pierre Sassoulas2023-03-311-3/+3
| |
* | [cleanup] Upgrade more doc following the PyCQA migrationPierre Sassoulas2023-03-315-12/+12
| |
* | Fix `used-before-assignment` false positive for `TYPE_CHECKING` elif branch ↵Zen Lee2023-03-301-0/+4
| | | | | | | | | | | | imports (#8441) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-297-268/+268
| |
* | Fix news fragment after incorrect auto-mergeDaniël van Noord2023-03-281-1/+1
| |
* | Allow integers in TypeAlias names (#8488)Stephane Odul2023-03-281-0/+5
| |