summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * 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>
* | | Fix a false positive for ``bad-dunder-name`` when there is a user-defined ↵Mark Byrne2023-04-243-0/+7
|/ / | | | | | | | | ``__index__`` method. (#8619) Closes #8613
* | Upgrade astroid to 2.15.4 (#8615)dependabot[bot]2023-04-242-2/+2
| | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | Bump sphinx from 6.1.3 to 6.2.0 (#8617)dependabot[bot]2023-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 6.1.3 to 6.2.0. - [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/v6.1.3...v6.2.0) --- updated-dependencies: - dependency-name: sphinx 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>
* | Bump actions/setup-python from 4.5.0 to 4.6.0 (#8616)dependabot[bot]2023-04-248-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.5.0 to 4.6.0. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4.5.0...v4.6.0) --- updated-dependencies: - dependency-name: actions/setup-python 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>
* | Use astroid.Context enum (#8611)Marc Mueller2023-04-241-5/+5
| |
* | Fix `FunctionDef` isinstance checks (#8607)Marc Mueller2023-04-233-7/+7
| |
* | Optimize `is_trailing_comma()` (#8606)Jacob Walls2023-04-232-5/+7
| | | | | | Skip is_trailing_comma() call unless `trailing-comma-tuple` enabled
* | Clear cache between primer package runsJacob Walls2023-04-231-1/+2
| |
* | Add news fragmentJacob Walls2023-04-231-0/+3
| |
* | Add performance news fragment typeJacob Walls2023-04-232-0/+6
| |
* | Cache `class_is_abstract()`Jacob Walls2023-04-231-0/+2
| | | | | | | | | | For one project in the pylint primer (music21), provides 15% speedup linting the entire project.
* | Upgrade astroid to 2.15.3 (#8584)Pierre Sassoulas2023-04-232-2/+2
| | | | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* | Update pytest requirement from ~=7.2 to ~=7.3 (#8562)dependabot[bot]2023-04-232-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update pytest requirement from ~=7.2 to ~=7.3 Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/7.2.0...7.3.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production ... * Disable import-error as attrs is no longer a test dependency --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* | Bump actions/checkout from 3.5.0 to 3.5.2 (#8585)dependabot[bot]2023-04-239-19/+19
| |
* | Modified all occurences of "a f-string" to "an f-string"Elazrod562023-04-207-39/+39
| |
* | Modified comment on line 147 to improve spellingElazrod562023-04-201-1/+1
| |
* | Minor refactor on type annotation (#8587)Zen Lee2023-04-181-1/+3
| |
* | Fix FP `used-before-assignment` for statements guarded under same test (#8581)Jacob Walls2023-04-164-1/+89
| |
* | Improve output of `consider-using-generator` message for `min()` calls with ↵Jacob Walls2023-04-164-1/+14
| | | | | | | | `default` keyword (#8582)
* | Cope with changes to `Arguments` constructorJacob Walls2023-04-161-1/+1
| |
* | Cope with changes to `AssignAttr` constructorJacob Walls2023-04-161-1/+8
| |
* | Cope with changes to `Starred` constructorJacob Walls2023-04-161-1/+9
| |
* | Fix `used-before-assignment` TYPE_CHECKING false negatives (#8431)Zen Lee2023-04-154-20/+86
| | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
* | Fix false negative for no-value-for-parameter: positional-only args and ↵Mark Byrne2023-04-145-0/+26
| | | | | | | | **kwargs (#8575)
* | Disable Info linters in definition instead of Run class (#8576)Matus Valo2023-04-144-9/+30
| |
* | Fix false positive for ``keyword-arg-before-vararg`` (#8571)Mark Byrne2023-04-135-1/+28
| | | | | | | | | | * Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. Closes #8570
* | Fix `unused-import` to check`dummy-variables-rgx` (#8566)RSTdefg2023-04-124-5/+20
| | | | | | | | | | Resolve #8500 Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* | [pre-commit.ci] pre-commit autoupdate (#8564)pre-commit-ci[bot]2023-04-111-3/+3
| | | | | | | | | | | | | | | | updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.261](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.260...v0.0.261) - [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.261](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.260...v0.0.261) - [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.2.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.2.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* | Bump actions/github-script from 6.4.0 to 6.4.1 (#8561)dependabot[bot]2023-04-102-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.0 to 6.4.1. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v6.4.0...v6.4.1) --- updated-dependencies: - dependency-name: actions/github-script dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Fix false positive for ``positional-only-arguments-expected`` when a ↵Mark Byrne2023-04-093-0/+23
| | | | | | | | function contains both a positional-only parameter that has a default value, and ``**kwargs``. (#8556)
* | Also check the typealias naming style for TypeAlias variables defined in ↵Yilei "Dolee" Yang2023-04-074-1/+21
| | | | | | | | functions. (#8537)
* | Fix isinstance-second-argument-not-valid-type for union types with NoneRogdham2023-04-074-9/+19
| |
* | Fix typelias `invalid-name` false positives for Union variables without ↵Yilei "Dolee" Yang2023-04-074-7/+11
| | | | | | | | assignment. (#8541)
* | Do not emit `logging-not-lazy` for explicitly concatenated strings. (#8546)Yilei "Dolee" Yang2023-04-074-8/+29
| |
* | Fix check unused arguments false positive bug (#8542)Théo Battrel2023-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
* | [pre-commit.ci] pre-commit autoupdate (#8539)pre-commit-ci[bot]2023-04-041-3/+3
| | | | | | | | | | | | | | | | updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.259 → v0.0.260](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.259...v0.0.260) - [github.com/charliermarsh/ruff-pre-commit: v0.0.259 → v0.0.260](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.259...v0.0.260) - [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* | Handle patterns in ignored-modules when checking for no-name-in-module (#7579)Daniel Mouritzen2023-04-038-48/+40
| | | | | | | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com> Co-authored-by: Jared Proffitt <jaredproffitt@gmail.com>
* | Merge maintenance 2.17.x in main following 2.17.2 release (#8534)Pierre Sassoulas2023-04-031-0/+36
|\ \
| * \ Merge 'maintenance/2.17.x' in main following 2.17.2 releasePierre Sassoulas2023-04-031-0/+36
| |\ \ |/ / / | | _
| * Bump pylint to 2.17.2, update changelog (#8533)v2.17.2Pierre Sassoulas2023-04-038-19/+39
| |