-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock file maintenance poetry all non-major dependencies #3248
Conversation
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: sfms/poetry.lock
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3248 +/- ##
=======================================
Coverage 81.94% 81.94%
=======================================
Files 275 275
Lines 9489 9489
Branches 445 445
=======================================
Hits 7776 7776
Misses 1594 1594
Partials 119 119 ☔ View full report in Codecov by Sentry. |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. ⚠ Warning: custom changes will be lost. |
Kudos, SonarCloud Quality Gate passed! |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Conor Brady <[email protected]>
This PR contains the following updates:
1.8.5.post1
->1.8.5
2.3.4
->2.7.0
3.8.6
->3.9.0
3.8.1
->3.8.2
2.13.9
->2.17.7
7.0.1
->7.4.3
>=3.6.8,<=3.6.15
->>=3.10.0,<=3.10.0
3.6
->3.8
0.1.5
->0.1.6
1.11.3
->1.11.4
0.24.0.post1
->0.24.0
🔧 This Pull Request updates lock files to use the latest dependency versions.
Release Notes
shapely/shapely (shapely)
v1.8.5
Compare Source
Packaging:
Wheels are provided for Python versions 3.6-3.11 and Cython 0.29.32 is used to
generate C extension module code.
aio-libs/aiobotocore (aiobotocore)
v2.7.0
: aiobotocore 2.7.0Compare Source
What's Changed
botocore
andurllib3 2.0
by @jakob-keller in https://github.com/aio-libs/aiobotocore/pull/1037New Contributors
Full Changelog: aio-libs/aiobotocore@2.6.0...2.7.0
v2.6.0
: aiobotocore 2.6.0Compare Source
What's Changed
Full Changelog: aio-libs/aiobotocore@2.5.4...2.6.0
v2.5.4
: aiobotocore 2.5.4Compare Source
What's Changed
__aenter__
#1031 by @thehesiod in https://github.com/aio-libs/aiobotocore/pull/1032Full Changelog: aio-libs/aiobotocore@2.5.3...2.5.4
v2.5.3
: aiobotocore 2.5.3Compare Source
What's Changed
New Contributors
Full Changelog: aio-libs/aiobotocore@2.5.2...2.5.3
v2.5.2
: aiobotocore 2.5.2Compare Source
What's Changed
Full Changelog: aio-libs/aiobotocore@2.5.1...2.5.2
v2.5.1
: aiobotocore 2.5.1Compare Source
What's Changed
Full Changelog: aio-libs/aiobotocore@2.5.0...2.5.1
v2.5.0
: aiobotocore 2.5.0Compare Source
What's Changed
New Contributors
Full Changelog: aio-libs/aiobotocore@2.4.2...2.5.0
v2.4.2
: aiobotocore 2.4.2Compare Source
What's Changed
Full Changelog: aio-libs/aiobotocore@2.4.1...2.4.2
v2.4.1
: aiobotocore 2.4.1Compare Source
What's Changed
New Contributors
Full Changelog: aio-libs/aiobotocore@2.4.0...2.4.1
v2.4.0
: aiobotocore 2.4.0Compare Source
What's Changed
New Contributors
Full Changelog: aio-libs/aiobotocore@2.3.4...2.4.0
aio-libs/aiohttp (aiohttp)
v3.9.0
Compare Source
==================
Features
Introduced
AppKey
for static typing support ofApplication
storage.See https://docs.aiohttp.org/en/stable/web_advanced.html#application-s-config
#​5864 <https://github.com/aio-libs/aiohttp/issues/5864>
_Added a graceful shutdown period which allows pending tasks to complete before the application's cleanup is called.
The period can be adjusted with the
shutdown_timeout
parameter. -- by :user:Dreamsorcerer
.See https://docs.aiohttp.org/en/latest/web_advanced.html#graceful-shutdown
#​7188 <https://github.com/aio-libs/aiohttp/issues/7188>
_Added
handler_cancellation <https://docs.aiohttp.org/en/stable/web_advanced.html#web-handler-cancellation>
_ parameter to cancel web handler on client disconnection. -- by :user:mosquito
This (optionally) reintroduces a feature removed in a previous release.
Recommended for those looking for an extra level of protection against denial-of-service attacks.
#​7056 <https://github.com/aio-libs/aiohttp/issues/7056>
_Added support for setting response header parameters
max_line_size
andmax_field_size
.#​2304 <https://github.com/aio-libs/aiohttp/issues/2304>
_Added
auto_decompress
parameter toClientSession.request
to overrideClientSession._auto_decompress
. -- by :user:Daste745
#​3751 <https://github.com/aio-libs/aiohttp/issues/3751>
_Changed
raise_for_status
to allow a coroutine.#​3892 <https://github.com/aio-libs/aiohttp/issues/3892>
_Added client brotli compression support (optional with runtime check).
#​5219 <https://github.com/aio-libs/aiohttp/issues/5219>
_Added
client_max_size
toBaseRequest.clone()
to allow overriding the request body size. -- :user:anesabml
.#​5704 <https://github.com/aio-libs/aiohttp/issues/5704>
_Added a middleware type alias
aiohttp.typedefs.Middleware
.#​5898 <https://github.com/aio-libs/aiohttp/issues/5898>
_Exported
HTTPMove
which can be used to catch any redirection requestthat has a location -- :user:
dreamsorcerer
.#​6594 <https://github.com/aio-libs/aiohttp/issues/6594>
_Changed the
path
parameter inweb.run_app()
to accept apathlib.Path
object.#​6839 <https://github.com/aio-libs/aiohttp/issues/6839>
_Performance: Skipped filtering
CookieJar
when the jar is empty or all cookies have expired.#​7819 <https://github.com/aio-libs/aiohttp/issues/7819>
_Performance: Only check origin if insecure scheme and there are origins to treat as secure, in
CookieJar.filter_cookies()
.#​7821 <https://github.com/aio-libs/aiohttp/issues/7821>
_Performance: Used timestamp instead of
datetime
to achieve faster cookie expiration inCookieJar
.#​7824 <https://github.com/aio-libs/aiohttp/issues/7824>
_Added support for passing a custom server name parameter to HTTPS connection.
#​7114 <https://github.com/aio-libs/aiohttp/issues/7114>
_Added support for using Basic Auth credentials from :file:
.netrc
file when making HTTP requests with the:py:class:
~aiohttp.ClientSession
trust_env
argument is set toTrue
. -- by :user:yuvipanda
.#​7131 <https://github.com/aio-libs/aiohttp/issues/7131>
_Turned access log into no-op when the logger is disabled.
#​7240 <https://github.com/aio-libs/aiohttp/issues/7240>
_Added typing information to
RawResponseMessage
. -- by :user:Gobot1234
#​7365 <https://github.com/aio-libs/aiohttp/issues/7365>
_Removed
async-timeout
for Python 3.11+ (replaced withasyncio.timeout()
on newer releases).#​7502 <https://github.com/aio-libs/aiohttp/issues/7502>
_Added support for
brotlicffi
as an alternative tobrotli
(fixing Brotli support on PyPy).#​7611 <https://github.com/aio-libs/aiohttp/issues/7611>
_Added
WebSocketResponse.get_extra_info()
to access a protocol transport's extra info.#​7078 <https://github.com/aio-libs/aiohttp/issues/7078>
_Allow
link
argument to be set to None/empty in HTTP 451 exception.#​7689 <https://github.com/aio-libs/aiohttp/issues/7689>
_Bugfixes
Implemented stripping the trailing dots from fully-qualified domain names in
Host
headers and TLS context when acting as an HTTP client.This allows the client to connect to URLs with FQDN host name like
https://example.com./
.-- by :user:
martin-sucha
.#​3636 <https://github.com/aio-libs/aiohttp/issues/3636>
_Fixed client timeout not working when incoming data is always available without waiting. -- by :user:
Dreamsorcerer
.#​5854 <https://github.com/aio-libs/aiohttp/issues/5854>
_Fixed
readuntil
to work with a delimiter of more than one character.#​6701 <https://github.com/aio-libs/aiohttp/issues/6701>
_Added
__repr__
toEmptyStreamReader
to avoidAttributeError
.#​6916 <https://github.com/aio-libs/aiohttp/issues/6916>
_Fixed bug when using
TCPConnector
withttl_dns_cache=0
.#​7014 <https://github.com/aio-libs/aiohttp/issues/7014>
_Fixed response returned from expect handler being thrown away. -- by :user:
Dreamsorcerer
#​7025 <https://github.com/aio-libs/aiohttp/issues/7025>
_Avoided raising
UnicodeDecodeError
in multipart and in HTTP headers parsing.#​7044 <https://github.com/aio-libs/aiohttp/issues/7044>
_Changed
sock_read
timeout to start after writing has finished, avoiding read timeouts caused by an unfinished write. -- by :user:dtrifiro
#​7149 <https://github.com/aio-libs/aiohttp/issues/7149>
_Fixed missing query in tracing method URLs when using
yarl
1.9+.#​7259 <https://github.com/aio-libs/aiohttp/issues/7259>
_Changed max 32-bit timestamp to an aware datetime object, for consistency with the non-32-bit one, and to avoid a
DeprecationWarning
on Python 3.12.#​7302 <https://github.com/aio-libs/aiohttp/issues/7302>
_Fixed
EmptyStreamReader.iter_chunks()
never ending. -- by :user:mind1m
#​7616 <https://github.com/aio-libs/aiohttp/issues/7616>
_Fixed a rare
RuntimeError: await wasn't used with future
exception. -- by :user:stalkerg
#​7785 <https://github.com/aio-libs/aiohttp/issues/7785>
_Fixed issue with insufficient HTTP method and version validation.
#​7700 <https://github.com/aio-libs/aiohttp/issues/7700>
_Added check to validate that absolute URIs have schemes.
#​7712 <https://github.com/aio-libs/aiohttp/issues/7712>
_Fixed unhandled exception when Python HTTP parser encounters unpaired Unicode surrogates.
#​7715 <https://github.com/aio-libs/aiohttp/issues/7715>
_Updated parser to disallow invalid characters in header field names and stop accepting LF as a request line separator.
#​7719 <https://github.com/aio-libs/aiohttp/issues/7719>
_Fixed Python HTTP parser not treating 204/304/1xx as an empty body.
#​7755 <https://github.com/aio-libs/aiohttp/issues/7755>
_Ensure empty body response for 1xx/204/304 per RFC 9112 sec 6.3.
#​7756 <https://github.com/aio-libs/aiohttp/issues/7756>
_Fixed an issue when a client request is closed before completing a chunked payload. -- by :user:
Dreamsorcerer
#​7764 <https://github.com/aio-libs/aiohttp/issues/7764>
_Edge Case Handling for ResponseParser for missing reason value.
#​7776 <https://github.com/aio-libs/aiohttp/issues/7776>
_Fixed
ClientWebSocketResponse.close_code
being erroneously set toNone
when there are concurrent async tasks receiving data and closing the connection.#​7306 <https://github.com/aio-libs/aiohttp/issues/7306>
_Added HTTP method validation.
#​6533 <https://github.com/aio-libs/aiohttp/issues/6533>
_Fixed arbitrary sequence types being allowed to inject values via version parameter. -- by :user:
Dreamsorcerer
#​7835 <https://github.com/aio-libs/aiohttp/issues/7835>
_Performance: Fixed increase in latency with small messages from websocket compression changes.
#​7797 <https://github.com/aio-libs/aiohttp/issues/7797>
_Improved Documentation
Fixed the
ClientResponse.release
's type in the doc. Changed fromcomethod
tomethod
.#​5836 <https://github.com/aio-libs/aiohttp/issues/5836>
_Added information on behavior of base_url parameter in
ClientSession
.#​6647 <https://github.com/aio-libs/aiohttp/issues/6647>
_Fixed
ClientResponseError
docs.#​6700 <https://github.com/aio-libs/aiohttp/issues/6700>
_Updated Redis code examples to follow the latest API.
#​6907 <https://github.com/aio-libs/aiohttp/issues/6907>
_Added a note about possibly needing to update headers when using
on_response_prepare
. -- by :user:Dreamsorcerer
#​7283 <https://github.com/aio-libs/aiohttp/issues/7283>
_Completed
trust_env
parameter description to honorwss_proxy
,ws_proxy
orno_proxy
env.#​7325 <https://github.com/aio-libs/aiohttp/issues/7325>
_Expanded SSL documentation with more examples (e.g. how to use certifi). -- by :user:
Dreamsorcerer
#​7334 <https://github.com/aio-libs/aiohttp/issues/7334>
_Fix, update, and improve client exceptions documentation.
#​7733 <https://github.com/aio-libs/aiohttp/issues/7733>
_Deprecations and Removals
Added
shutdown_timeout
parameter toBaseRunner
, whiledeprecating
shutdown_timeout
parameter fromBaseSite
. -- by :user:Dreamsorcerer
#​7718 <https://github.com/aio-libs/aiohttp/issues/7718>
_Dropped Python 3.6 support.
#​6378 <https://github.com/aio-libs/aiohttp/issues/6378>
_Dropped Python 3.7 support. -- by :user:
Dreamsorcerer
#​7336 <https://github.com/aio-libs/aiohttp/issues/7336>
_Removed support for abandoned
tokio
event loop. -- by :user:Dreamsorcerer
#​7281 <https://github.com/aio-libs/aiohttp/issues/7281>
_Misc
Made
print
argument inrun_app()
optional.#​3690 <https://github.com/aio-libs/aiohttp/issues/3690>
_Improved performance of
ceil_timeout
in some cases.#​6316 <https://github.com/aio-libs/aiohttp/issues/6316>
_Changed importing Gunicorn to happen on-demand, decreasing import time by ~53%. -- :user:
Dreamsorcerer
#​6591 <https://github.com/aio-libs/aiohttp/issues/6591>
_Improved import time by replacing
http.server
withhttp.HTTPStatus
.#​6903 <https://github.com/aio-libs/aiohttp/issues/6903>
_Fixed annotation of
ssl
parameter to disallowTrue
. -- by :user:Dreamsorcerer
.#​7335 <https://github.com/aio-libs/aiohttp/issues/7335>
_matplotlib/matplotlib (matplotlib)
v3.8.2
: REL: v3.8.2Compare Source
REL: v3.8.2
This is the second bugfix release of the 3.8 series.
Highlights of this release include:
pylint-dev/pylint (pylint)
v2.17.7
Compare Source
2.17.7 is the last release before we only support pylint 3.0.0 or superior and python 3.8 or superior.
False Positives Fixed
Fix a regression in pylint 2.17.6 / astroid 2.15.7 causing various
messages for code involving
TypeVar
.Closes #9069
Other Bug Fixes
Fix crash in refactoring checker when unary operand used with variable in for
loop.
Closes #9074
v2.17.6
Compare Source
Other Bug Fixes
When parsing comma-separated lists of regular expressions in the config,
ignore commas that are inside braces since those indicate quantifiers, not
delineation between expressions.
Closes #7229
sys.argv
is now always correctly considered as impossible to infer(instead of using the actual values given to pylint).
Closes #9047
Don't show class fields more than once in Pyreverse diagrams.
Closes #8189
Don't show arrows more than once in Pyreverse diagrams.
Closes #8522
Don't show duplicate type annotations in Pyreverse diagrams.
Closes #8888
Don't add
Optional
to|
annotations withNone
in Pyreverse diagrams.Closes #9014
v2.17.5
Compare Source
What's new in Pylint 2.17.5?
Release date: 2023-07-26
False Positives Fixed
Fix a false positive for
unused-variable
when there is an import in aif TYPE_CHECKING:
block andallow-global-unused-variables
is set tono
in the configuration.Closes #8696
Fix false positives generated when supplying arguments as
**kwargs
to IOcalls like open().
Closes #8719
Fix a false positive where pylint was ignoring method calls annotated as
NoReturn
during theinconsistent-return-statements
check.Closes #8747
Exempt parents with only type annotations from the
invalid-enum-extension
message.
Closes #8830
Other Bug Fixes
Fixed crash when a call to
super()
was placed after an operator (e.g.not
).Closes #8554
Fix crash for
modified-while-iterating
checker when deletingmembers of a dict returned from a call.
Closes #8598
Fix crash in
invalid-metaclass
check when a metaclass had duplicatebases.
Closes #8698
Avoid
consider-using-f-string
on modulos with brackets in template.Closes #8720.
Fix a crash when
__all__
exists but cannot be inferred.Closes #8740
Fix crash when a variable is assigned to a class attribute of identical name.
Closes #8754
Fixed a crash when calling
copy.copy()
without arguments.Closes #8774
Other Changes
Fix a crash when a
nonlocal
is defined at module-level.Closes #8735
v2.17.4
Compare Source
False Positives Fixed
Fix a false positive for
bad-dunder-name
when there is a user-defined__index__
method.Closes #8613
Other Bug Fixes
pyreverse
: added escaping of vertical bar character in annotation labelsproduced by DOT printer to ensure it is not treated as field separator of
record-based nodes.
Closes #8603
Fixed a crash when generating a configuration file:
tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key
caused by tomlkit
v0.11.8
.Closes #8632
v2.17.3
Compare Source
What's new in Pylint 2.17.3?
Release date: 2023-04-24
False Positives Fixed
Fix
unused-argument
false positive when__new__
does not use all thearguments of
__init__
.Closes #3670
Fix
unused-import
false positive for usage ofsix.with_metaclass
.Closes #7506
logging-not-lazy
is not longer emitted for explicitly concatenated stringarguments.
Closes #8410
Fix false positive for isinstance-second-argument-not-valid-type when union
types contains None.
Closes #8424
Fixed
unused-import
so that it observes thedummy-variables-rgx
option.Closes #8500
Union
typed variables without assignment are no longer treated asTypeAlias
.Closes #8540
Fix false positive for
positional-only-arguments-expected
when a functioncontains both a positional-only parameter that has a default value, and
**kwargs
.Closes #8555
Fix false positive for
keyword-arg-before-vararg
when a positional-onlyparameter with a default value precedes
*args
.Closes #8570
Other Bug Fixes
Improve output of
consider-using-generator
message formin()` calls with
default`` keyword.Closes #8563
v2.17.2
Compare Source
False Positives Fixed
invalid-name
now allows for integers intypealias
names:Good2Name
,GoodName2
._1BadName
.Closes #8485
No longer consider
Union
as type annotation as type alias for namingchecks.
Closes #8487
unnecessary-lambda
no longer warns on lambdas which use its parameters intheir body (other than the final arguments), e.g.
lambda foo: (bar if foo else baz)(foo)
.Closes #8496
Other Bug Fixes
Fix a crash in pyreverse when "/" characters are used in the output filename
e.g pyreverse -o png -p name/ path/to/project.
Closes #8504
v2.17.1
Compare Source
False Positives Fixed
Adds
asyncSetUp
to the defaultdefining-attr-methods
list to silenceattribute-defined-outside-init
warning when usingunittest.IsolatedAsyncioTestCase
.Refs #8403
Other Bug Fixes
--clear-cache-post-run
now also clears LRU caches for pylint utilitiesholding references to AST nodes.
Closes #8361
Fix a crash when
TYPE_CHECKING
is used without importing it.Closes #8434
Fix a regression of
preferred-modules
where a partial match was usedinstead of the required full match.
Closes #8453
Internal Changes
The following utilities are deprecated in favor of the more robust
in_type_checking_block
and will be removed in pylint 3.0:
is_node_in_guarded_import_block
is_node_in_typing_guarded_import_block
is_typing_guard
is_sys_guard
is still available, which was part ofis_node_in_guarded_import_block
.Refs #8433
v2.17.0
Compare Source
2.17 is a small release that is the first to support python 3.11 officially
with the addition of TryStar nodes.
There's still two new default checks:
bad-chained-comparison
andimplicit-flag-alias
, one of them already fixed a previously undetectedbug in sentry.
Thanks to the community effort our documentation is almost complete,
and almost all messages should have a proper documentation now.
A big thank you to everyone who participated !
The next release is going to be
3.0.0
, bring breaking changes andenact long announced deprecations. There's going to be frequent beta
releases, before the official releases, everyone is welcome to try the betas
so we find problems before the actual release.
What's new in Pylint 2.17.0?
Release date: 2023-03-08
New Features
pyreverse
now supports custom color palettes with the--color-palette
option.
Closes #6738
Add
invalid-name
check forTypeAlias
names.Closes #7081
Accept values of the form
<class name>.<attribute name>
for theexclude-protected
list.Closes #7343
Add
--version
option topyreverse
.Refs #7851
Adds new functionality with preferred-modules configuration to detect
submodules.
Refs #7957
Support implicit namespace packages (PEP 420).
Closes #8154
Add globbing pattern support for
--source-roots
.Closes #8290
Support globbing pattern when defining which file/directory/module to lint.
Closes #8310
pylint now supports
TryStar
nodes from Python 3.11 and should be fullycompatible with Python 3.11.
Closes #8387
New Checks
Add a
bad-chained-comparison
check that emits a warning whenthere is a chained comparison where one expression is semantically
incompatible with the other.
Closes #6559
Adds an
implicit-flag-alias
check that emits a warning when a classderived from
enum.IntFlag
assigns distinct integer values that sharecommon bit positions.
Refs #8102
False Positives Fixed
Fix various false positives for functions that return directly from
structural pattern matching cases.
Closes #5288
Fix false positive for
used-before-assignment
whentyping.TYPE_CHECKING
is used with if/elif/else blocks.Closes #7574
Fix false positive for isinstance-second-argument-not-valid-type with union
types.
Closes #8205
Fix false positive for
used-before-assignment
for named expressionsappearing after the first element in a list, tuple, or set.
Closes #8252
Fix false positive for
wrong-spelling-in-comment
with class names in apython 2 type comment.
Closes #8370
False Negatives Fixed
Fix a false negative for 'missing-parentheses-for-call-in-test' when
inference
failed for the internal of the call as we did not need that information to
raise
correctly.
Refs #8185
Fix false negative for inconsistent-returns with while-loops.
Closes #8280
Other Bug Fixes
Fix
used-before-assignment
false positive when the walrus operatoris used with a ternary operator in dictionary key/value initialization.
Closes #8125
Fix
no-name-in-module
false positive raised when a package defines avariable with the
same name as one of its submodules.
Closes #8148
Fix a crash happening for python interpreter < 3.9 following a failed typing
update.
Closes #8161
Fix
nested-min-max
suggestion message to indicate it's possible to splatiterable objects.
Closes #8168
Fix a crash happening when a class attribute was negated in the start
argument of an enumerate.
Closes #8207
Prevent emitting
invalid-name
for the line on which aglobal
statement is declared.
Closes #8307
Other Changes
Update explanation for
global-variable-not-assigned
and add confidence.Closes #5073
The governance model and the path to become a maintainer have been documented
as part of our effort to guarantee that the software supply chain in which pylint is included is secure.
Refs #8329
v2.16.4
Compare Source
False Positives Fixed
Fix false positive for isinstance-second-argument-not-valid-type with union
types.
Closes #8205
v2.16.3
Compare Source
False Positives Fixed
Fix false positive for
wrong-spelling-in-comment
with class names in apython 2 type comment.
Closes #8370
Other Bug Fixes
Prevent emitting
invalid-name
for the line on which aglobal
statement is declared.
Closes #8307
v2.16.2
Compare Source
New Features
Add
--version
option topyreverse
.Refs #7851
False Positives Fixed
Fix false positive for
used-before-assignment
whentyping.TYPE_CHECKING
is used with if/elif/else blocks.Closes #7574
Fix false positive for
used-before-assignment
for named expressionsappearing after the first element in a list, tuple, or set.
Closes #8252
Other Bug Fixes
Fix
used-before-assignment
false positive when the walrus operatoris used with a ternary operator in dictionary key/value initialization.
Closes #8125
Fix
no-name-in-module
false positive raised when a package defines avariable with the same name as one of its submodules.
Closes #8148
Fix
nested-min-max
suggestion message to indicate it's possible to splatiterable objects.
Closes #8168
Fix a crash happening when a class attribute was negated in the start
argument of an enumerate.
Closes #8207
v2.16.1
Compare Source
Other Bug Fixes
Fix a crash happening for python interpreter < 3.9 following a failed typing
update.
Closes #8161
v2.16.0
Compare Source
Summary -- Release highlights
In 2.16.0 we added aggregation and composition understanding in
pyreverse
, and a way to clearthe cache in between run in server mode (originally for the VS Code integration). Apart from the bug
fixes there's also a lot of new checks, and new extensions that have been asked for for a long time
that were implemented.
If you want to benefit from all the new checks load the following plugins::
We still welcome any community effort to help review, integrate, and add good/bad examples to the doc for
#5953. This should be doable without any
pylint
orastroid
knowledge, so this is the perfect entrypoint if you want to contribute to
pylint
or open source withoutany experience with our code!
Last but not least @clavedeluna and @nickdrozd became triagers, welcome to the team !
What's new in Pylint 2.16.0?
Changes requiring user actions
The
accept-no-raise-doc
option related tomissing-raises-doc
will nowbe correctly taken into account all the time.
Pylint will no longer raise missing-raises-doc (W9006) when no exceptions are
documented and accept-no-raise-doc is true (issue #7208).
If you were expecting missing-raises-doc errors to be raised in that case,
you
will now have to add
accept-no-raise-doc=no
in your configuration to keepthe same behavior.
Closes #7208
New Features
Added the
no-header
output format. If enabled with--output-format=no-header
, it will not include the module name in theoutput.
Closes #5362
Added configuration option
clear-cache-post-run
to support server-likeusage.
Use this flag if you expect the linted files to be altered between runs.
Refs #5401
Add
--allow-reexport-from-package
option to configure theuseless-import-alias
check not to emit a warning if a nameis reexported from a package.
Closes #6006
Update
pyreverse
to differentiate between aggregations and compositions.pyreverse
checks if it's an Instance or a Call of an object via methodparameters (via type hints)
to decide if it's a composition or an aggregation.
Refs #6543
New Checks
Adds a
pointless-exception-statement
check that emits a warning when anException is created and not assigned, raised or returned.
Refs #3110
Add a
shadowed-import
message for aliased imports.Closes #4836
Add new check called
unbalanced-dict-unpacking
to check for unbalanceddict unpacking
in assignment and for loops.
Closes #5797
Add new checker
positional-only-arguments-expected
to check for caseswhen
positional-only arguments have been passed as keyword arguments.
Closes #6489
Added
singledispatch-method
which informs that@singledispatch
shoulddecorate functions and not class/instance methods.
Added
singledispatchmethod-function
which informs that@singledispatchmethod
should decorate class/instance methods and notfunctions.
Closes #6917
Rename
broad-except
tobroad-exception-caught
and add new checkerbroad-exception-raised
which will warn if general exceptions
BaseException
orException
areraised.
Closes #7494
Added
nested-min-max
which flagsmin(1, min(2, 3))
to simplify tomin(1, 2, 3)
.Closes #7546
Extended
use-dict-literal
to also warn about call todict()
whenpassing keyword arguments.
Closes #7690
Add
named-expr-without-context
check to emit a warning if a namedexpression is used outside a context like
if
,for
,while
, ora comprehension.
Refs #7760
Add
invalid-slice-step
check to warn about a slice step value of0
for common builtin sequences.
Refs #7762
Add
consider-refactoring-into-while-condition
check to recommendrefactoring when
a while loop is defined with a constant condition with an immediate
if
statement to check for
break
condition as a first statement.Closes #8015
Extensions
Add new extension checker
dict-init-mutate
that flags mutating adictionary immediately
after the dictionary was created.
Closes #2876
Added
bad-dunder-name
extension check, which flags bad or misspelleddunder methods.
You can use the
good-dunder-names
option to allow specific dunder names.Closes #3038
Added
consider-using-augmented-assign
check forCodeStyle
extensionwhich flags
x = x + 1
to simplify tox += 1
.This check is disabled by default. To use it, load the code style extension
with
load-plugins=pylint.extensions.code_style
and addconsider-using-augmented-assign
in theenable
option.Closes #3391
Add
magic-number
plugin checker for comparison with constants instead ofnamed constants or enums.
You can use it with
--load-plugins=pylint.extensions.magic_value
.Closes #7281
Add
redundant-typehint-argument
message fortyping
plugin for duplicateassign typehints.
Enable the plugin to enable the message with:
--load-plugins=pylint.extensions.typing
.Closes #7636
False Positives Fixed
Fix false positive for
unused-variable
andunused-import
when a nameis only used in a string literal type annotation.
Closes #3299
Document a known false positive for
useless-suppression
when disablingline-too-long
in a module with only comments and no code.Closes #3368
trailing-whitespaces
is no longer reported within strings.Closes #3822
Fix false positive for
global-variable-not-assigned
when a globalvariable is re-assigned via an
ImportFrom
node.Closes #4809
Fix false positive for
use-maxsplit-arg
with custom split method.Closes #4857
Fix
logging-fstring-interpolation
false positive raised when logging andf-string with
%s
formatting.Closes #4984
Fix false-positive for
used-before-assignment
in pattern matchingwith a guard.
Closes #5327
Fix
use-sequence-for-iteration
when unpacking a set with*
.Closes #5788
Fix
deprecated-method
false positive when alias for method is similar toname of deprecated method.
Closes #5886
Fix false positive
assigning-non-slot
when a class attribute isre-assigned.
Closes #6001
Fix false positive for
too-many-function-args
when a function call isassigned to a class attribute inside the class where the function is defined.
Closes #6592
Fixes false positive
abstract-method
on Protocol classes.Closes #7209
Pylint now understands the
kw_only
keyword argument fordataclass
.Closes #7290, closes #6550, closes #5857
Fix false positive for
undefined-loop-variable
infor-else
loops thatuse a function
having a return type annotation of
NoReturn
orNever
.Closes #7311
Fix
used-before-assignment
for functions/classes defined in type checkingguard.
Closes #7368
Fix false positive for
unhashable-member
when subclassingdict
andusing the subclass as a dictionary key.
Closes #7501
Fix the message for
unnecessary-dunder-call
for__aiter__
and__aneext__
. Alsoonly emit the warning when
py-version
>= 3.10.Closes #7529
Fix
used-before-assignment
false positive when else branch callssys.exit
or similar terminating functions.Closes #7563
Fix a false positive for
used-before-assignment
for imports guarded bytyping.TYPE_CHECKING
later used in variable annotations.Closes #7609
Fix a false positive for
simplify-boolean-expression
when multiple valuesare inferred for a constant.
Closes #7626
unnecessary-list-index-lookup
will not be wrongly emitted ifenumerate
is called withstart
.Closes [#7682](https://togithub.com/pylint-dev/pylint
Configuration
📅 Schedule: Branch creation - "before 4am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.
Test Links:
Landing Page
MoreCast 2.0
Percentile Calculator
MoreCast
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator