summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump pylint to 2.13.9, update changelogv2.13.9Pierre Sassoulas2022-05-138-15/+16
|
* Fix false positive for `undefined-loop-variable` with `enumerate()` (#6602)Jacob Walls2022-05-134-0/+22
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Respect ignore configuration options when --recursive=y. (#6528)Matus Valo2022-05-136-10/+181
| | | | | | | * Ignore specified files/directories in recursive mode Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Fix a crash in `unnecessary-dict-index-lookup` when subscripting an ↵Jacob Walls2022-05-134-0/+16
| | | | attribute (#6579)
* Add regression test for #6497 (#6498)Jacob Walls2022-05-133-0/+17
|
* Add regression test for #6539Jacob Walls2022-05-133-0/+11
|
* Upgrade astroid version to 2.11.5Pierre Sassoulas2022-05-132-2/+2
|
* Add an exception for `IndexError` inside `uninferable_final_decorator` (#6532)Mark Byrne2022-05-134-12/+55
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Bump pylint to 2.13.8, update changelogv2.13.8Pierre Sassoulas2022-05-025-8/+14
|
* Suppress `unsubscriptable-object` warnings in type-checking blocks (#5720)Pierre Sassoulas2022-05-024-1/+28
| | | | | | | | * Add a regression test for issue #3979 * Don't emit `unsubscriptable-object` for statements in type-checking blocks Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix a false positive for `undefined-loop-variable` when a loop else raises ↵Jacob Walls2022-05-024-1/+33
| | | | | | or returns (#6480) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive for `undefined-loop-variable` for lambda in first of two ↵Jacob Walls2022-05-024-1/+34
| | | | | | loops (#6479) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive for ``unused-variable`` when specifying a metaclass via a ↵Jacob Walls2022-05-024-0/+24
| | | | call (#6481)
* Avoid reporting superfluous-parens after an ``is not`` operator (#6451)Tim Martin2022-05-024-1/+24
|
* Fix crash when open is called with an integer mode (#6415)Pierre Sassoulas2022-05-025-1/+15
| | | | Closes #6414
* Bump pylint to 2.13.7, update changelogv2.13.7Pierre Sassoulas2022-04-203-3/+9
|
* Fix 'object has no attribute additional_builtins' (#6410)Pierre Sassoulas2022-04-203-4/+6
| | | Closes #6408
* Bump pylint to 2.13.6, update changelogv2.13.6Pierre Sassoulas2022-04-204-4/+10
|
* [pre-commit.ci] pre-commit autoupdate to fix the black issuepre-commit-ci[bot]2022-04-201-4/+4
|
* Upgrade astroid to 2.11.3 (#6398)Pierre Sassoulas2022-04-202-2/+2
|
* Prevent false positive `undefined-variable` for user-specified builtins ↵Jacob Walls2022-04-205-2/+35
| | | | given type annotations (#6392)
* Fix a crash in the ``unsupported-membership-test`` checker involving tuple ↵Jacob Walls2022-04-207-7/+54
| | | | | | unpacking (#6367) An assumption of direct parentage between `AssignName` and `Assign` was violated by tuple unpacking.
* Fix `AstroidError` in similarity checker with imports/signatures ignored (#6357)Jacob Walls2022-04-204-23/+52
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Suppress ``useless-super-delegation`` if return type changed (#5822) (#6141)Tim Martin2022-04-203-0/+44
| | | | * Reinstate warning if base method has no return type annotation
* Handle asterisks better in Sphinx and Google style docstringsDaniël van Noord2022-04-209-59/+161
|
* Bump pylint to 2.13.5, update changelogv2.13.5Pierre Sassoulas2022-04-064-7/+15
|
* Bump black from 22.1.0 to 22.3.0 (#6176)dependabot[bot]2022-04-061-1/+1
| | | | | | | | | | | | | | | | | Bumps [black](https://github.com/psf/black) from 22.1.0 to 22.3.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/22.1.0...22.3.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add ``subclassed-final-class`` message to the ``check_messages`` decorator ↵Mark Byrne2022-04-062-0/+4
| | | | | | | | (#6190) Fix a false negative for ``subclassed-final-class`` when a set of other messages were disabled. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Prevent `used-before-assignment` for assignment via nonlocal after type ↵Jacob Walls2022-04-065-0/+56
| | | | annotation (#6185)
* Only emit ``lru-cache-decorating-method`` when ``maxsize`` is ``None`` (#6181)Daniël van Noord2022-04-068-156/+109
| | | | Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false positive for ``unused-import`` when disabling both ↵Andreas Finkler2022-04-044-9/+17
| | | | | ``used-before-assignment`` and ``undefined-variable`` (#6096) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Fix handling of "for x in x" homonyms (#6154)Jacob Walls2022-04-045-4/+14
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Account for more node types in handling of except block homonyms with ↵Jacob Walls2022-04-045-69/+116
| | | | | | | | comprehensions (#6073) Fixes a false positive for `used-before-assignment`. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* ``redefined-slots-in-subclass`` crash when slot type is neither a string or ↵Mark Byrne2022-04-043-3/+14
| | | | | | | constant node (#6112) * Suppress `invalid-slots-object` in the function tests for `redefined-slots-in-subclass` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix E1102 / ``not-callable`` false positive for property that returns a ↵Tushar Sadhwani2022-04-044-10/+43
| | | | | | | | lambda function conditionally (#6068) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com> Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix false-positive for unnecessary-ellipsis checker on comparisons (#6075)Saugat Pachhai2022-04-041-0/+15
| | | | | Closes #6071. Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Narrow the scope of the ``unnecessary-ellipsis`` checker (#6081)Mark Byrne2022-04-043-15/+9
| | | | | | | * Narrow the scope of the ``unnecessary-ellipsis`` checker to functions & classes which contain both a docstring and an ellipsis. * Emit the warning when the body contains an ellipsis expression and at least one other item. Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* Bump pylint to 2.13.4, update changelogv2.13.4Pierre Sassoulas2022-03-314-4/+10
|
* Fix crash in ``super-init-not-called`` checker (#6043)Daniël van Noord2022-03-314-5/+19
| | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Remove assumption of direct parentage in `used-before-assignment` homonym ↵Jacob Walls2022-03-313-10/+78
| | | | | | | handling The previous fixes for false positives involving homonyms with variables in comprehension tests in #5586 and #5817 still relied on assumptions of direct parentage.
* Fix false positive for the ``unnecessary-ellipsis`` checker (#6039)Mark Byrne2022-03-313-2/+6
| | | | | | | | When an ellipsis is used in a lambda expression. Closes #6036 Co-authored-by: Mark Byrne <mark.byrne@rabobank.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Fix crash for ``unneccessary-ellipsis`` checker (#6038)Mark Byrne2022-03-313-1/+24
| | | | | | | | | When an ellipsis is used inside of a list or inside a container Closes #6037 Co-authored-by: Mark Byrne <mark.byrne@rabobank.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Include ``testing_pylintrc`` in source and wheel distributions (#6029)Joe Young2022-03-313-0/+9
|
* Bump pylint to 2.13.3, update changelogv2.13.3Pierre Sassoulas2022-03-294-5/+11
|
* Change 'nonexistent-operator' to allow repeated unary ops (with space or ↵Sergey B Kirpichev2022-03-294-0/+15
| | | | | | | parens) (#6008) Closes #5769 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* `unnecessary-ellipsis` false positive: allow ellipsis as default argument ↵Joe Young2022-03-294-2/+17
| | | | (#6007)
* Fix crash on unbalanced tuple unpackingJacob Walls2022-03-294-0/+9
|
* Bump pylint to 2.13.2, update changelogv2.13.2Pierre Sassoulas2022-03-274-3/+14
|
* Better error message when we cant write the crash files (#5987)Pierre Sassoulas2022-03-272-7/+9
| | | * Display the error correctly if we can't write a crash report. Also catch any exceptions.
* Fix false negative for `protected-access` on functions (#5990)Jacob Walls2022-03-274-1/+25
|