| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* Drop support for Python 3.7
* Update py-version + classifier
* Update functional tests
|
|\ |
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
`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>
|
|/ /
| |
| |
| |
| | |
``__index__`` method. (#8619)
Closes #8613
|
| |
| |
| | |
Skip is_trailing_comma() call unless `trailing-comma-tuple` enabled
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
`default` keyword (#8582)
|
| |
| |
| |
| | |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
|
| |
| |
| |
| | |
**kwargs (#8575)
|
| |
| |
| |
| |
| | |
* Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``.
Closes #8570
|
| |
| |
| |
| |
| | |
Resolve #8500
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
| |
| |
| | |
function contains both a positional-only parameter that has a default value, and ``**kwargs``. (#8556)
|
| |
| |
| |
| | |
functions. (#8537)
|
| | |
|
| |
| |
| |
| | |
assignment. (#8541)
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com>
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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)
|
| | |
|
| |
| |
| |
| | |
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
* Add test
* Add package test
* Fix test names
* Clean up test files
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
imports (#8441)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| | |
|
| | |
|
| | |
|