summaryrefslogtreecommitdiff
path: root/pylint/checkers/classes.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [unused-private-member] Handle the case with Call nodePierre Sassoulas2021-06-301-4/+19
| | | | As seen in issue #4638
* [unused-private-member] Handle the 'None' case for attribute expressionPierre Sassoulas2021-06-301-0/+2
|
* [unused-private-member] Remove boolean in favor of using for/elsePierre Sassoulas2021-06-301-7/+3
| | | | See https://github.com/PyCQA/pylint/pull/4642\#discussion_r661712743
* Add typing in '_check_unused_private_members''s for loopsPierre Sassoulas2021-06-301-1/+3
|
* Bump pylint to 2.9.0-dev1, update changelogPierre Sassoulas2021-06-171-0/+2
|
* Fix existing codeMarc Mueller2021-06-101-2/+2
|
* Update name for consider-using-namedtuple to include dataclass (#4536)Marc Mueller2021-06-021-1/+1
| | | | | * Change msg name to include dataclass * Update pylint ignores * Update tests
* Add new checker consider-using-namedtuple (#4517)Marc Mueller2021-05-311-1/+1
| | | | * Add new checker consider-using-namedtuple * Add disable for existing code base
* Fix false-positive assigning-non-slot with typing.Generic base (#4522)Marc Mueller2021-05-301-0/+7
|
* Implemented new checker invalid-class-object (#4510)yushao22021-05-261-1/+18
|
* Fixed false-positive on ``unused-private-member`` (#4507)yushao22021-05-251-1/+1
|
* Implemented ``unused-private-member`` checker (#4504)yushao22021-05-251-1/+78
|
* Create new error arguments-renamed (#4467)Konstantina Saketou2021-05-171-18/+29
| | | | | | | | | | | | | | | | | * Create new error arguments-renamed This commits creates the new error arguments-renamed based on the functionality added on #4422 and the changes of #4456. * Merge test files for arguments-differ This commit merges the two kinds of test files that existed for the arguments-differ error, since now all tests run in Python3. * Add tests for arguments-renamed error * Add new error arguments-renamed Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove type check from arguments-differ (#4456)Marc Mueller2021-05-101-24/+4
|
* Customize arguments-differ error messages (#4422)Konstantina Saketou2021-05-051-16/+101
| | | | | | Changes the output messages of arguments-differ based on different error cases. It is part one of the issue #3536
* Changes after black updateMarc Mueller2021-04-261-1/+1
|
* Prepare for 2.8.0 releasepylint-2.8.0Pierre Sassoulas2021-04-241-1/+2
|
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* Fix some LGMT errors - unreachable-statementMarc Mueller2021-04-071-1/+0
|
* Replace filterMarc Mueller2021-04-031-3/+1
|
* Replace mapMarc Mueller2021-04-031-1/+1
|
* Allow protected-access in class methods (#4267)James Sinclair2021-04-011-0/+46
| | | | | | * Add failing tests for protected member access in class methods. * Allow protected-access to class/instance members inside class methods. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Prepare 2.7.3 release (#4261)pylint-2.7.32.7Pierre Sassoulas2021-03-291-0/+1
|
* Import astroid with import x or from x import y but not bothPierre Sassoulas2021-03-281-17/+13
| | | | Remove unused imports for astroid
* Fix private method hidden by ancestor class attribute (#4177)tiagohonorato2021-03-211-0/+2
| | | | | | | | | | | | | | * Fix private method hidden by ancestor class attribute A class defined private method won't be hidden by an ancestor class private attribute as the class will mangle the latter to avoid naming collisions. Add tests to assert method-hidden : Although private attributes from the parent class should not hide methods in the child class, this is not true for protected attributes. This test ensures that ``method-hidden`` catches the error when private attributes are not in use. Signed-off-by: Tiago Honorato <tiagohonorato1@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Remove TypedDict hotfixMarc Mueller2021-02-281-5/+0
|
* Apply copyrite --contribution-thresholdPierre Sassoulas2021-02-211-2/+4
|
* Migrate from % syntax or bad format() syntax to fstringPierre Sassoulas2021-02-211-1/+1
| | | | We can do that in python 3.6
* Move from % string formatting syntax to f-string or .format()Pierre Sassoulas2021-02-211-2/+2
|
* Remove the # coding, since PEP3120 the default is UTF8Pierre Sassoulas2021-02-211-1/+0
|
* Move from format() to f-string where it makes sensePierre Sassoulas2021-02-161-1/+1
| | | | As we do not maintain python 3.5 it permit to simplify some code
* Fix W504 line break after binary operatorPierre Sassoulas2021-02-151-4/+2
|
* Fix TypedDict inherit-non-class false-positive Python 3.9+Marc Mueller2021-02-151-0/+5
| | | | * Closes #1927
* Fix signature-differsGergelyKalmar2020-12-201-1/+4
|
* Taking into account @Pierre-Sassoulas remarkshippo912020-09-271-5/+7
|
* Adds an option to the ClassChecker to activate/deactivate protected-access ↵hippo912020-09-261-5/+15
| | | | message emission for single underscore prefixed attributes inside special method
* Remove unsecable whitespace in the whole codebasePierre Sassoulas2020-09-121-4/+4
|
* Update formatting following black and isort updatePierre Sassoulas2020-09-101-6/+4
|
* Merge branch 'master' into bug_pylint_3468hippo912020-09-061-0/+1
|\
| * def _has_different_parameters_default_value method add the astroid.DIct ↵hippo912020-08-171-0/+1
| | | | | | | | class in the type to be compared for default arguments.
* | Corrects some inconsistent-return-statements occurenceshippo912020-08-201-0/+1
|/
* `property-with-parameters` properly handles abstract propertiesClaudiu Popa2020-05-141-1/+6
| | | | Close #3600
* Fix a crash in `method-hidden` lookup for unknown base classesClaudiu Popa2020-04-281-9/+4
| | | | | | | | The patch replaces `mro()` with `ancestors()` as the former is not fully capable of generating the complete linearization when dealing with ambiguous inferences. Close #3527
* Add missing copyright annotations for the past releasesClaudiu Popa2020-04-271-6/+17
|
* Positional-only arguments are taken in account for ``useless-super-delegation``Claudiu Popa2020-03-281-6/+13
|
* Fix R1721: Unnecessary use of a comprehensionPierre Sassoulas2020-03-271-1/+1
|
* Fix overzealous `arguments-differ` for variadicsmattlbeck2020-03-271-15/+25
| | | | | | | | | No message is emitted if the overriding function provides positional or keyword variadics in its signature that can feasibly accept and pass on all parameters given by the overridden function. Closes #1482 Closes #1553
* pyupgrade: automated removal of python2 constructsAnthony Sottile2020-03-241-1/+0
| | | | | | | | | | | | | using configuration: ```yaml - repo: https://github.com/asottile/pyupgrade rev: v2.1.0 hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/) ```
* Correct some types and guard against unexpected values in classes checkersClaudiu Popa2020-03-081-1/+1
|
* ``no-self-use`` is no longer emitted for typing stubs.Claudiu Popa2020-03-071-0/+2
| | | | Close #3439