summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump pylint to 2.17.3, update changelog (#8620)v2.17.3Pierre Sassoulas2023-04-2414-33/+63
|
* Upgrade astroid to 2.15.4 (#8615) (#8618)github-actions[bot]2023-04-242-2/+2
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit a83137da3d72990d41ae993128fdde297cbc36cf) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Disable import-error as attrs is no longer a test dependencyMarc Mueller2023-04-231-1/+1
|
* Upgrade astroid to 2.15.3 (#8584)Pierre Sassoulas2023-04-232-2/+2
| | | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> (cherry picked from commit 3d036b78fca6e80222f9ca2ffd0f25950d261aed)
* Improve output of `consider-using-generator` message for `min()` calls with ↵github-actions[bot]2023-04-174-1/+14
| | | | | | | `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-155-1/+28
| | | | | | | | | * 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-124-5/+20
| | | | | | | | 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-103-0/+23
| | | | | | | 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-074-9/+19
| | | | (cherry picked from commit b5f2b01635edd23fecc1546f3fdb2a41e6a51995)
* Fix typelias `invalid-name` false positives for Union variables without ↵github-actions[bot]2023-04-074-7/+11
| | | | | | | 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-074-8/+29
| | | | (cherry picked from commit eeddd667a6e73ef58fb47cdda154c1751f0ffe71)
* Fix check unused arguments false positive bug (#8542) (#8545)github-actions[bot]2023-04-064-0/+36
| | | | | | | | | | | | | | | | | | | | | | 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>
* Bump pylint to 2.17.2, update changelog (#8533)v2.17.2Pierre Sassoulas2023-04-038-19/+39
|
* [Backport maintenance/2.17.x] Add regression test for #7506 (#8531)github-actions[bot]2023-04-034-8/+15
| | | | | | | | | | * 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>
* Upgrade astroid to 2.15.2 (#8530) (#8532)Pierre Sassoulas2023-04-032-3/+3
|
* [pyreverse] Bugfix: strip "/" at the end of the file (#8517) (#8528)github-actions[bot]2023-04-023-1/+21
| | | | | | | 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>
* Don't use removed function from ``astroid`` (#8525) (#8526)github-actions[bot]2023-04-021-5/+11
| | | | | (cherry picked from commit f7bd67604f395cd50734b9559acc37ae5d34ce4b) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [Backport maintenance/2.17.x] Allow integers in TypeAlias names. (#8507)github-actions[bot]2023-03-285-16/+27
| | | | 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-284-0/+26
| | | | | | | | | 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-233-1/+14
| | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> (cherry picked from commit 07127ee75f3456920ff5117cdbaf8697744b6cfc)
* Bump pylint to 2.17.1, update changelog (#8482)v2.17.1Pierre Sassoulas2023-03-229-28/+55
|
* Fix incorrect preferred-modules matches (#8481)github-actions[bot]2023-03-223-1/+29
| | | | | | 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>
* Deprecate redundant type checking guard utils (#8433) (#8439)github-actions[bot]2023-03-126-22/+53
| | | | | (cherry picked from commit b968fa062f801626426ef399401c4530e13fcc49) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Add Python 3.8+ `asyncSetUp` to "defining-attr-methods" list (#8403) (#8438)github-actions[bot]2023-03-117-4/+30
| | | | | (cherry picked from commit b312b9a66472e17d02461258d2156d670481a7f6) Co-authored-by: Samuel FORESTIER <HorlogeSkynet@users.noreply.github.com>
* Fix a crash when `TYPE_CHECKING` is used without importing it (#8435) (#8436)github-actions[bot]2023-03-113-1/+17
| | | | | (cherry picked from commit 4c56ba82d7aac50b1ea34e929833c91418e1d117) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Clear LRU caches on pylint utilities (#8420) (#8427)github-actions[bot]2023-03-103-1/+26
| | | | | (cherry picked from commit ab20812ad0e9ca17cc3bc32dbf34be575dcea502) Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* Proper release date and summary for 2.17.0v2.17.0Pierre Sassoulas2023-03-081-2/+18
|
* Bump pylint to 2.17.0, update changelog (#8395)Pierre Sassoulas2023-03-0738-120/+228
|
* Add regression test for #5288 (#8385)Jacob Walls2023-03-073-0/+17
|
* Use UninferableBase instead of UninferableDaniel van Noord2023-03-0717-81/+87
|
* Upgrade to astroid 2.15.0 (#8387)Pierre Sassoulas2023-03-077-11/+14
| | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [pre-commit.ci] pre-commit autoupdate (#8393)pre-commit-ci[bot]2023-03-071-3/+3
| | | | | | | | updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.253 → v0.0.254](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.253...v0.0.254) - [github.com/charliermarsh/ruff-pre-commit: v0.0.253 → v0.0.254](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.253...v0.0.254) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.4 → v3.0.0-alpha.6](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.4...v3.0.0-alpha.6) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Merge remote-tracking branch 'upstream/maintenance/2.16.x' into mainMarc Mueller2023-03-061-0/+14
|\
| * Bump pylint to 2.16.4, update changelog (#8389)v2.16.4Marc Mueller2023-03-065-6/+17
| |
| * Fix invalid type false positive (#8206) (#8386)Marc Mueller2023-03-069-8/+57
| | | | | | | | | | (cherry picked from commit e64f0437388298c7f8514a6755c3c27a0d9a35f2) Co-authored-by: Nick Drozd <nicholasdrozd@gmail.com>
* | Cancel previous tests when pushing to PRsJacob Walls2023-03-052-0/+8
| |
* | Document ignoring pragmas for calculating line length (#8380)Jacob Walls2023-03-041-0/+2
| |
* | [doc] Add an example for 'missing-format-string-key' (#8379)Pierre Sassoulas2023-03-033-2/+14
| |
* | Merge maintenance 2.16.x in main (#8377)Pierre Sassoulas2023-03-031-0/+24
|\ \
| * \ Merge 'maintenance/2.16.x' following 2.16.3 releasePierre Sassoulas2023-03-031-0/+24
| |\ \ | | |/
| | * Bump pylint to 2.16.3, update changelog (#8375)v2.16.3Pierre Sassoulas2023-03-036-9/+27
| | |
| | * [spelling] Ignore spelling in type/mypy type ignore comments (#8370) (#8373)github-actions[bot]2023-03-023-37/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. (cherry picked from commit b5aab35a6f20efad94ae8da07392fad6d1c28aad) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| | * Prevent emitting ``invalid-name`` on 'global' redefinition (#8337) (#8354)Pierre Sassoulas2023-02-276-7/+14
| | | | | | | | | | | | | | | Closes #8307 Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
| | * [test] Use an empty pylintrc so tests to not depend on system's conf (#8350) ↵github-actions[bot]2023-02-274-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#8351) * [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> (cherry picked from commit 641f526e1632dd1835b79abaf31006efc60824f6) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
| | * [test] Permits to debug more easily 'test_allow_reexport_package' (#8347) ↵github-actions[bot]2023-02-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | (#8349) Refs #8342 (cherry picked from commit 27a3984832faf36be4fab07fef84086d25283846) Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | | Accept values of the form ``<class name>.<attribute name>`` for the ↵Mark Byrne2023-03-035-11/+36
|/ / | | | | | | | | | | | | | | `exclude-protected` list (#8364) Closes #7343 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Bump sphinx from 5.3.0 to 6.1.3dependabot[bot]2023-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.3.0 to 6.1.3. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES) - [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.3.0...v6.1.3) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* | Update myst-parser requirement from ~=0.18 to ~=0.19 (#8374)dependabot[bot]2023-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the requirements on [myst-parser](https://github.com/executablebooks/MyST-Parser) to permit the latest version. - [Release notes](https://github.com/executablebooks/MyST-Parser/releases) - [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/executablebooks/MyST-Parser/compare/v0.18.0...v0.19.1) --- updated-dependencies: - dependency-name: myst-parser dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | [pre-commit] Transition from flake8/autoflake to ruff (#8372)Pierre Sassoulas2023-03-025-51/+20
| | | | | | | | | | ruff is faster and support pyproject.toml. flake8-typing-import is not implemented but it checks for things in python version < 3.7.2 that we do not support.
* | [spelling] Ignore spelling in type/mypy type ignore comments (#8370)Pierre Sassoulas2023-03-023-37/+28
| | | | | | | | | | | | | | 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.