PyCQA/pylint
### [`v2.15.10`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.10)
[Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.9...v2.15.10)
## False Positives Fixed
- Fix `use-sequence-for-iteration` when unpacking a set with `*`.
Closes [#5788](https://togithub.com/PyCQA/pylint/issues/5788)
- Fix false positive `assigning-non-slot` when a class attribute is
re-assigned.
Closes [#6001](https://togithub.com/PyCQA/pylint/issues/6001)
- Fixes `used-before-assignment` false positive when the walrus operator
is used in a ternary operator.
Closes [#7779](https://togithub.com/PyCQA/pylint/issues/7779)
- Prevent `used-before-assignment` when imports guarded by `if
TYPE_CHECKING`
are guarded again when used.
Closes [#7979](https://togithub.com/PyCQA/pylint/issues/7979)
## Other Bug Fixes
- Using custom braces in `msg-template` will now work properly.
Closes [#5636](https://togithub.com/PyCQA/pylint/issues/5636)
### [`v2.15.9`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.9)
[Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.8...v2.15.9)
## False Positives Fixed
- Fix false-positive for `used-before-assignment` in pattern matching with a guard.
Closes [#5327](https://togithub.com/PyCQA/pylint/issues/5327)
## Other Bug Fixes
- Pylint will no longer deadlock if a parallel job is killed but fail immediately instead.
Closes [#3899](https://togithub.com/PyCQA/pylint/issues/3899)
- When pylint exit due to bad arguments being provided the exit code will now be the expected `32`.
Refs [#7931](https://togithub.com/PyCQA/pylint/issues/7931)
- Fixes a `ModuleNotFound` exception when running pylint on a Django project with the `pylint_django` plugin enabled.
Closes [#7938](https://togithub.com/PyCQA/pylint/issues/7938)
### [`v2.15.8`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.8)
[Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.7...v2.15.8)
## False Positives Fixed
- Document a known false positive for `useless-suppression` when disabling
`line-too-long` in a module with only comments and no code.
Closes [#3368](https://togithub.com/PyCQA/pylint/issues/3368)
- Fix `logging-fstring-interpolation` false positive raised when logging and f-string with `%s` formatting.
Closes [#4984](https://togithub.com/PyCQA/pylint/issues/4984)
- Fixes false positive `abstract-method` on Protocol classes.
Closes [#7209](https://togithub.com/PyCQA/pylint/issues/7209)
- Fix `missing-param-doc` false positive when function parameter has an escaped underscore.
Closes [#7827](https://togithub.com/PyCQA/pylint/issues/7827)
- `multiple-statements` no longer triggers for function stubs using inlined `...`.
Closes [#7860](https://togithub.com/PyCQA/pylint/issues/7860)
### [`v2.15.7`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.7)
[Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.6...v2.15.7)
## False Positives Fixed
- Fix `deprecated-method` false positive when alias for method is similar to
name of deprecated method.
Closes [#5886](https://togithub.com/PyCQA/pylint/issues/5886)
- Fix a false positive for `used-before-assignment` for imports guarded by
`typing.TYPE_CHECKING` later used in variable annotations.
Closes [#7609](https://togithub.com/PyCQA/pylint/issues/7609)
## Other Bug Fixes
- Pylint will now filter duplicates given to it before linting. The output
should be the same whether a file is given/discovered multiple times or not.
Closes [#6242](https://togithub.com/PyCQA/pylint/issues/6242), [#4053](https://togithub.com/PyCQA/pylint/issues/4053)
- Fixes a crash in `stop-iteration-return` when the `next` builtin is
called without arguments.
Closes [#7828](https://togithub.com/PyCQA/pylint/issues/7828)
### [`v2.15.6`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.6)
[Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.5...v2.15.6)
## False Positives Fixed
- Fix false positive for `unhashable-member` when subclassing `dict` and
using the subclass as a dictionary key.
Closes [#7501](https://togithub.com/PyCQA/pylint/issues/7501)
- `unnecessary-list-index-lookup` will not be wrongly emitted if
`enumerate` is called with `start`.
Closes [#7682](https://togithub.com/PyCQA/pylint/issues/7682)
- Don't warn about `stop-iteration-return` when using `next()` over
`itertools.cycle`.
Closes [#7765](https://togithub.com/PyCQA/pylint/issues/7765)
## Other Bug Fixes
- Messages sent to reporter are now copied so a reporter cannot modify the
message sent to other reporters.
Closes [#7214](https://togithub.com/PyCQA/pylint/issues/7214)
- Fixes edge case of custom method named `next` raised an astroid error.
Closes [#7610](https://togithub.com/PyCQA/pylint/issues/7610)
- Fix crash that happened when parsing files with unexpected encoding starting
with 'utf' like `utf13`.
Closes [#7661](https://togithub.com/PyCQA/pylint/issues/7661)
- Fix a crash when a child class with an `__init__` method inherits from a
parent class with an `__init__` class attribute.
Closes [#7742](https://togithub.com/PyCQA/pylint/issues/7742)
### [`v2.15.5`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.5)
[Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.4...v2.15.5)
## What's new in Pylint 2.15.5?
Release date: 2022-10-21
## False Positives Fixed
- Fix a false positive for `simplify-boolean-expression` when multiple values
are inferred for a constant.
Closes [#7626](https://togithub.com/PyCQA/pylint/issues/7626)
## Other Bug Fixes
- Remove `__index__` dunder method call from `unnecessary-dunder-call`
check.
Closes [#6795](https://togithub.com/PyCQA/pylint/issues/6795)
- Fixed a multi-processing crash that prevents using any more than 1 thread on
MacOS.
The returned module objects and errors that were cached by the linter plugin loader cannot be reliably pickled. This means that `dill` would throw an error when attempting to serialise the linter object for multi-processing use.
Closes [#7635](https://togithub.com/PyCQA/pylint/issues/7635).
## Other Changes
- Add a keyword-only `compare_constants` argument to `safe_infer`.
Refs [#7626](https://togithub.com/PyCQA/pylint/issues/7626)
- Sort `--generated-rcfile` output.
Refs [#7655](https://togithub.com/PyCQA/pylint/issues/7655)
### [`v2.15.4`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.4)
[Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.3...v2.15.4)
## False Positives Fixed
- Fix the message for `unnecessary-dunder-call` for `__aiter__` and
`__anext__`. Also
only emit the warning when `py-version` >= 3.10.
Closes [#7529](https://togithub.com/PyCQA/pylint/issues/7529)
## Other Bug Fixes
- Fix bug in detecting `unused-variable` when iterating on variable.
Closes [#3044](https://togithub.com/PyCQA/pylint/issues/3044)
- Fixed handling of `--` as separator between positional arguments and flags.
This was not actually fixed in 2.14.5.
Closes [#7003](https://togithub.com/PyCQA/pylint/issues/7003), Refs [#7096](https://togithub.com/PyCQA/pylint/issues/7096)
- Report `no-self-argument` rather than `no-method-argument` for methods
with variadic arguments.
Closes [#7507](https://togithub.com/PyCQA/pylint/issues/7507)
- Fixed an issue where `syntax-error` couldn't be raised on files with
invalid encodings.
Closes [#7522](https://togithub.com/PyCQA/pylint/issues/7522)
- Fix false positive for `redefined-outer-name` when aliasing `typing`
e.g. as `t` and guarding imports under `t.TYPE_CHECKING`.
Closes [#7524](https://togithub.com/PyCQA/pylint/issues/7524)
- Fixed a crash of the `modified_iterating` checker when iterating on a set
defined as a class attribute.
Closes [#7528](https://togithub.com/PyCQA/pylint/issues/7528)
- Fix bug in scanning of names inside arguments to `typing.Literal`.
See https://peps.python.org/pep-0586/#literals-enums-and-forward-references
for details.
Refs [#3299](https://togithub.com/PyCQA/pylint/issues/3299)
## Other Changes
- Add method name to the error messages of `no-method-argument` and
`no-self-argument`.
Closes [#7507](https://togithub.com/PyCQA/pylint/issues/7507)
Configuration
📅 Schedule: Branch creation - "before 8am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
==2.15.3
->==2.15.10
Release Notes
PyCQA/pylint
### [`v2.15.10`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.10) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.9...v2.15.10) ## False Positives Fixed - Fix `use-sequence-for-iteration` when unpacking a set with `*`. Closes [#5788](https://togithub.com/PyCQA/pylint/issues/5788) - Fix false positive `assigning-non-slot` when a class attribute is re-assigned. Closes [#6001](https://togithub.com/PyCQA/pylint/issues/6001) - Fixes `used-before-assignment` false positive when the walrus operator is used in a ternary operator. Closes [#7779](https://togithub.com/PyCQA/pylint/issues/7779) - Prevent `used-before-assignment` when imports guarded by `if TYPE_CHECKING` are guarded again when used. Closes [#7979](https://togithub.com/PyCQA/pylint/issues/7979) ## Other Bug Fixes - Using custom braces in `msg-template` will now work properly. Closes [#5636](https://togithub.com/PyCQA/pylint/issues/5636) ### [`v2.15.9`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.9) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.8...v2.15.9) ## False Positives Fixed - Fix false-positive for `used-before-assignment` in pattern matching with a guard. Closes [#5327](https://togithub.com/PyCQA/pylint/issues/5327) ## Other Bug Fixes - Pylint will no longer deadlock if a parallel job is killed but fail immediately instead. Closes [#3899](https://togithub.com/PyCQA/pylint/issues/3899) - When pylint exit due to bad arguments being provided the exit code will now be the expected `32`. Refs [#7931](https://togithub.com/PyCQA/pylint/issues/7931) - Fixes a `ModuleNotFound` exception when running pylint on a Django project with the `pylint_django` plugin enabled. Closes [#7938](https://togithub.com/PyCQA/pylint/issues/7938) ### [`v2.15.8`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.8) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.7...v2.15.8) ## False Positives Fixed - Document a known false positive for `useless-suppression` when disabling `line-too-long` in a module with only comments and no code. Closes [#3368](https://togithub.com/PyCQA/pylint/issues/3368) - Fix `logging-fstring-interpolation` false positive raised when logging and f-string with `%s` formatting. Closes [#4984](https://togithub.com/PyCQA/pylint/issues/4984) - Fixes false positive `abstract-method` on Protocol classes. Closes [#7209](https://togithub.com/PyCQA/pylint/issues/7209) - Fix `missing-param-doc` false positive when function parameter has an escaped underscore. Closes [#7827](https://togithub.com/PyCQA/pylint/issues/7827) - `multiple-statements` no longer triggers for function stubs using inlined `...`. Closes [#7860](https://togithub.com/PyCQA/pylint/issues/7860) ### [`v2.15.7`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.7) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.6...v2.15.7) ## False Positives Fixed - Fix `deprecated-method` false positive when alias for method is similar to name of deprecated method. Closes [#5886](https://togithub.com/PyCQA/pylint/issues/5886) - Fix a false positive for `used-before-assignment` for imports guarded by `typing.TYPE_CHECKING` later used in variable annotations. Closes [#7609](https://togithub.com/PyCQA/pylint/issues/7609) ## Other Bug Fixes - Pylint will now filter duplicates given to it before linting. The output should be the same whether a file is given/discovered multiple times or not. Closes [#6242](https://togithub.com/PyCQA/pylint/issues/6242), [#4053](https://togithub.com/PyCQA/pylint/issues/4053) - Fixes a crash in `stop-iteration-return` when the `next` builtin is called without arguments. Closes [#7828](https://togithub.com/PyCQA/pylint/issues/7828) ### [`v2.15.6`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.6) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.5...v2.15.6) ## False Positives Fixed - Fix false positive for `unhashable-member` when subclassing `dict` and using the subclass as a dictionary key. Closes [#7501](https://togithub.com/PyCQA/pylint/issues/7501) - `unnecessary-list-index-lookup` will not be wrongly emitted if `enumerate` is called with `start`. Closes [#7682](https://togithub.com/PyCQA/pylint/issues/7682) - Don't warn about `stop-iteration-return` when using `next()` over `itertools.cycle`. Closes [#7765](https://togithub.com/PyCQA/pylint/issues/7765) ## Other Bug Fixes - Messages sent to reporter are now copied so a reporter cannot modify the message sent to other reporters. Closes [#7214](https://togithub.com/PyCQA/pylint/issues/7214) - Fixes edge case of custom method named `next` raised an astroid error. Closes [#7610](https://togithub.com/PyCQA/pylint/issues/7610) - Fix crash that happened when parsing files with unexpected encoding starting with 'utf' like `utf13`. Closes [#7661](https://togithub.com/PyCQA/pylint/issues/7661) - Fix a crash when a child class with an `__init__` method inherits from a parent class with an `__init__` class attribute. Closes [#7742](https://togithub.com/PyCQA/pylint/issues/7742) ### [`v2.15.5`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.5) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.4...v2.15.5) ## What's new in Pylint 2.15.5? Release date: 2022-10-21 ## False Positives Fixed - Fix a false positive for `simplify-boolean-expression` when multiple values are inferred for a constant. Closes [#7626](https://togithub.com/PyCQA/pylint/issues/7626) ## Other Bug Fixes - Remove `__index__` dunder method call from `unnecessary-dunder-call` check. Closes [#6795](https://togithub.com/PyCQA/pylint/issues/6795) - Fixed a multi-processing crash that prevents using any more than 1 thread on MacOS. The returned module objects and errors that were cached by the linter plugin loader cannot be reliably pickled. This means that `dill` would throw an error when attempting to serialise the linter object for multi-processing use. Closes [#7635](https://togithub.com/PyCQA/pylint/issues/7635). ## Other Changes - Add a keyword-only `compare_constants` argument to `safe_infer`. Refs [#7626](https://togithub.com/PyCQA/pylint/issues/7626) - Sort `--generated-rcfile` output. Refs [#7655](https://togithub.com/PyCQA/pylint/issues/7655) ### [`v2.15.4`](https://togithub.com/PyCQA/pylint/releases/tag/v2.15.4) [Compare Source](https://togithub.com/PyCQA/pylint/compare/v2.15.3...v2.15.4) ## False Positives Fixed - Fix the message for `unnecessary-dunder-call` for `__aiter__` and `__anext__`. Also only emit the warning when `py-version` >= 3.10. Closes [#7529](https://togithub.com/PyCQA/pylint/issues/7529) ## Other Bug Fixes - Fix bug in detecting `unused-variable` when iterating on variable. Closes [#3044](https://togithub.com/PyCQA/pylint/issues/3044) - Fixed handling of `--` as separator between positional arguments and flags. This was not actually fixed in 2.14.5. Closes [#7003](https://togithub.com/PyCQA/pylint/issues/7003), Refs [#7096](https://togithub.com/PyCQA/pylint/issues/7096) - Report `no-self-argument` rather than `no-method-argument` for methods with variadic arguments. Closes [#7507](https://togithub.com/PyCQA/pylint/issues/7507) - Fixed an issue where `syntax-error` couldn't be raised on files with invalid encodings. Closes [#7522](https://togithub.com/PyCQA/pylint/issues/7522) - Fix false positive for `redefined-outer-name` when aliasing `typing` e.g. as `t` and guarding imports under `t.TYPE_CHECKING`. Closes [#7524](https://togithub.com/PyCQA/pylint/issues/7524) - Fixed a crash of the `modified_iterating` checker when iterating on a set defined as a class attribute. Closes [#7528](https://togithub.com/PyCQA/pylint/issues/7528) - Fix bug in scanning of names inside arguments to `typing.Literal`. See https://peps.python.org/pep-0586/#literals-enums-and-forward-references for details. Refs [#3299](https://togithub.com/PyCQA/pylint/issues/3299) ## Other Changes - Add method name to the error messages of `no-method-argument` and `no-self-argument`. Closes [#7507](https://togithub.com/PyCQA/pylint/issues/7507)Configuration
📅 Schedule: Branch creation - "before 8am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.