| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
``__index__`` method. (#8619) (#8622)
Closes #8613
(cherry picked from commit f223c6de3a39eae6d1c76e30b55da28639dd8777)
Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
| |
`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`` 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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
(cherry picked from commit b5f2b01635edd23fecc1546f3fdb2a41e6a51995)
|
|
|
|
|
|
|
| |
assignment. (#8541) (#8548)
(cherry picked from commit cb255eaaed8bba6bec1f7bf5d4cde15821c1dd46)
Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
|
|
|
|
| |
(cherry picked from commit eeddd667a6e73ef58fb47cdda154c1751f0ffe71)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
their body (#8498) (#8506)
Fixes #8496
(cherry picked from commit b62143611a4713e4729ce9ecb6398f5f94d82f1a)
Co-authored-by: cherryblossom <31467609+cherryblossom000@users.noreply.github.com>
|
|
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
(cherry picked from commit 07127ee75f3456920ff5117cdbaf8697744b6cfc)
|
|
|
|
|
|
| |
Co-authored-by: d33bs <dave.bunten@cuanschutz.edu>
(cherry picked from commit d64c0cc1484b0cbea5fd3a9dfac4c0d6ddc7d1aa)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit b968fa062f801626426ef399401c4530e13fcc49)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit b312b9a66472e17d02461258d2156d670481a7f6)
Co-authored-by: Samuel FORESTIER <HorlogeSkynet@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 4c56ba82d7aac50b1ea34e929833c91418e1d117)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
`exclude-protected` list (#8364)
Closes #7343
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
| |
enchant does not understand class name well enough so it creates false
positives, and mypy type ignore comments with additional text are
a syntax error anyway, so raising a spelling mistakes for it is not
really important.
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
| |
Following a failed attempt to add functional tests for spelling checker in #6137
|
|
|
|
|
| |
Closes #8307
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* [test] Use an empty pylintrc so tests to not depend on system's conf
Closes #8342
* Update tests/checkers/unittest_imports.py
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
---------
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
| |
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Refs #8342
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
| |
* Changing flake8 max-line-length to 120
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
| |
And move links to related.rst
Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Wrapping "Message emitted" in monospaced formatting,
causes `W1507` (`pylint/checkers/stdlib.py`) to fail on a stray space.
Fix that - as it seems to be the only outlier.
(Might've been nice for a more formal check in the first place 🙏).
Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
|
|
|
| |
Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(#8253)
|
| |
|
|
|
|
| |
dictionary (#8176)
|
| |
|
|
|
| |
Co-authored-by: Andreas Finkler <3929834+DudeNr33@users.noreply.github.com>
|
| |
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
| |
usage (#8071)
|