This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
⬆️(dependencies) update python dependencies #62
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.2
->==3.2.7
==2.11.3
->==3.0.1
==3.9.1
->==3.9.2
==6.10.0
->==6.18.0
==5.8.0
->==5.9.3
==1.1.2
->==1.2.2
==7.1.2
->==7.2.6
==0.15.0
->==0.15.2
==2.8.6
->==2.9.1
==4.4.0
->==4.5.1
==2.7.4
->==2.10.2
==2.4.3
->==2.4.4
==6.2.3
->==6.2.5
==2.11.1
->==2.12.1
==4.2.0
->==4.4.0
==3.4.1
->==3.4.2
Release Notes
django/django
v3.2.7
Compare Source
v3.2.6
Compare Source
v3.2.5
Compare Source
v3.2.4
Compare Source
v3.2.3
Compare Source
v3.2.2
Compare Source
v3.2.1
Compare Source
pycqa/isort
v5.9.3
Compare Source
--from-first
CLI flag shouldn't take any arguments.v5.9.2
Compare Source
isort --check --atomic
against Cython files.__init__.py
files during placement.v5.9.1
Compare Source
v5.9.0
Compare Source
__pypackages__
directories by default.reverse_sort
whenforce_sort_within_sections
is true PyCQA/isort#1726): isort ignores reverse_sort when force_sort_within_sections is true.Goal Zero (Tickets related to aspirational goal of achieving 0 regressions for remaining 5.0.0 lifespan):
mkdocs/mkdocs
v1.2.2
Compare Source
MkDocs 1.2.2 is a bugfix release for MkDocs 1.2 -- make sure you've seen the "major" release notes as well.
Bugfix (regression in 1.2): Fix serving files/paths with Unicode characters (#2464)
Bugfix (regression in 1.2): Revert livereload file watching to use polling observer (#2477)
This had to be done to reasonably support usages that span virtual filesystems such as non-native Docker and network mounts.
This goes back to the polling approach, very similar to that was always used prior, meaning most of the same downsides with latency and CPU usage.
Revert from 1.2: Remove the requirement of a
site_url
config and the restriction onuse_directory_urls
(#2490)Bugfix (regression in 1.2): Don't require trailing slash in the URL when serving a directory index in
mkdocs serve
server (#2507)Instead of showing a 404 error, detect if it's a directory and redirect to a path with a trailing slash added, like before.
Bugfix: Fix
gh_deploy
with config-file in the current directory (#2481)Bugfix: Fix reversed breadcrumbs in "readthedocs" theme (#2179)
Allow "mkdocs.yaml" as the file name when '--config' is not passed (#2478)
Stop treating ";" as a special character in URLs: urlparse -> urlsplit (#2502)
Improve build performance for sites with many pages (partly already done in 1.2) (#2407)
v1.2.1
Compare Source
v1.2
Compare Source
mkdocstrings/mkdocstrings
v0.15.2
Compare Source
Compare with 0.15.1
Packaging
v0.15.1
Compare Source
Compare with 0.15.0
Bug Fixes
Packaging
PyCQA/pylint
v2.10.2
Compare Source
============================
Release date: 2021-08-21
We now use platformdirs instead of appdirs since the latter is not maintained.
Closes #4886
Fix a crash in the checker raising
shallow-copy-environ
when failing to inferon
copy.copy
Closes #4891
v2.10.1
Compare Source
============================
Release date: 2021-08-20
pylint does not crash when PYLINT_HOME does not exist.
Closes #4883
v2.10.0
Compare Source
============================
Release date: 2021-08-20
pyreverse: add option to produce colored output.
Closes #4488
pyreverse: add output in PlantUML format.
Closes #4498
consider-using-with
is no longer triggered if a context manager is returned from a function.Closes #4748
pylint does not crash with a traceback anymore when a file is problematic. It
creates a template text file for opening an issue on the bug tracker instead.
The linting can go on for other non problematic files instead of being impossible.
pyreverse: Show class has-a relationships inferred from the type-hint
Closes #4744
Fixed a crash when importing beyond the top level package during
import-error
message creation
Closes #4775
Added
ignored-parents
option to the design checker to ignore specificclasses from the
too-many-ancestors
check (R0901).Partially closes #3057
Added
unspecified-encoding
: Emitted when open() is called without specifying an encodingCloses #3826
Improved the Similarity checker performance. Fix issue with
--min-similarity-lines
used with--jobs
.Close #4120
Close #4118
Don't emit
no-member
error if guarded behind if statement.Ref #1162
Closes #1990
Closes #4168
The default for
PYLINTHOME
is now the standardXDG_CACHE_HOME
, and pylint now usesappdirs
.Closes #3878
Added
use-list-literal
: Emitted whenlist()
is called with no arguments instead of using[]
Closes #4365
Added
use-dict-literal
: Emitted whendict()
is called with no arguments instead of using{}
Closes #4365
Added optional extension
consider-ternary-expression
: Emitted whenever a variable is assigned in both branches of an if/else block.Closes # 4366
Added optional extension
while-used
: Emitted whenever awhile
loop is used.Closes # 4367
Added
forgotten-debug-statement
: Emitted whenbreakpoint
,pdb.set_trace
orsys.breakpointhook
calls are foundCloses #3692
Fix false-positive of
unused-private-member
when using nested functions in a classCloses #4673
Fix crash for
unused-private-member
that occurred with nested attributes.Closes #4755
Fix a false positive for
unused-private-member
with class namesCloses #4681
Fix false positives for
superfluous-parens
with walrus operator, ternary operator and inside list comprehension.Closes #2818
Closes #3249
Closes #3608
Closes #4346
Added
format-string-without-interpolation
checker: Emitted when formatting is applied to a string without any variables to be replacedCloses #4042
Refactor of
--list-msgs
&--list-msgs-enabled
: both options now show whether messages are emittable with the current interpreter.Closes #4778
Fix false negative for
used-before-assignment
when the variable is assignedin an exception handler, but used outside of the handler.
Closes #626
Added
disable-next
option: allows using# pylint: disable-next=msgid
to disable a message for the following lineCloses #1682
Added
redundant-u-string-prefix
checker: Emitted when the u prefix is added to a stringCloses #4102
Fixed
cell-var-from-loop
checker: handle cell variables in comprehensions within functions,and function default argument expressions. Also handle basic variable shadowing.
Closes #2846
Closes #3107
Fixed bug with
cell-var-from-loop
checker: it no longer has false negatives whenboth
unused-variable
andused-before-assignment
are disabled.Fix false postive for
invalid-all-format
if the list or tuple builtin functions are usedCloses #4711
Config files can now contain environment variables
Closes #3839
Fix false-positive
used-before-assignment
with an assignment expression in aReturn
nodeCloses #4828
Added
use-sequence-for-iteration
: Emitted when iterating over an in-place definedset
.CodeStyleChecker
Limit
consider-using-tuple
to be emitted only for in-place definedlists
.Emit
consider-using-tuple
even if list contains astarred
expression.Ignore decorators lines by similarities checker when ignore signatures flag enabled
Closes #4839
Allow
true
andfalse
values inpylintrc
for better compatibility withtoml
config.Class methods' signatures are ignored the same way as functions' with similarities "ignore-signatures" option enabled
Closes #4653
Improve performance when inferring
Call
nodes, by utilizing caching.Improve error message for invalid-metaclass when the node is an Instance.
v2.9.6
Compare Source
===========================
Release date: 2021-07-28
Fix a false positive
undefined-variable
when variable name in decorationmatches function argument
Closes #3791
v2.9.5
Compare Source
===========================
Release date: 2021-07-21
Fix a crash when there would be a 'TypeError object does not support
item assignment' in the code we parse.
Closes #4439
Fix crash if a callable returning a context manager was assigned to a list or dict item
Closes #4732
Fix a crash when a AttributeInferenceError was not handled properly when
failing to infer the real name of an import in astroid.
Closes #4692
v2.9.4
Compare Source
===========================
Release date: 2021-07-20
Added
time.clock
to deprecated functions/methods for python 3.3Fix bug in which --fail-on can return a zero exit code even when the specified issue is present
Closes #4296
Closes #3363
Fix hard failure when handling missing attribute in a class with duplicated bases
Closes #4687
Fix false-positive
consider-using-with
(R1732) if a ternary conditional is used together withwith
Closes #4676
Fix false-positive
deprecated-module
when relative import uses deprecated module name.Closes #4629
Fix false-positive
consider-using-with
(R1732) ifcontextlib.ExitStack
takes care of calling the__exit__
methodCloses #4654
Fix a false positive for
unused-private-member
when mutating a private attributewith
cls
Closes #4657
Fix ignored empty functions by similarities checker with "ignore-signatures" option enabled
Closes #4652
Fix false-positive of
use-maxsplit-arg
when index is incremented ina loop
Closes #4664
Don't emit
cyclic-import
message if import is guarded bytyping.TYPE_CHECKING
.Closes #3525
Fix false-positive
not-callable
with alternativeTypedDict
syntaxCloses #4715
Clarify documentation for consider-using-from-import
Don't emit
unreachable
warning for empty generator functionsCloses #4698
Don't emit
import-error
,no-name-in-module
, andungrouped-imports
for imports guarded by
sys.version_info
ortyping.TYPE_CHECKING
.Closes #3285
Closes #3382
Fix
invalid-overridden-method
with nested propertyCloses #4368
Fix false-positive of
unused-private-member
when using__new__
in a classCloses #4668
No longer emit
consider-using-with
forThreadPoolExecutor
andProcessPoolExecutor
as they have legitimate use cases without a
with
block.Closes #4689
Fix crash when inferring variables assigned in match patterns
Closes #4685
Fix a crash when a StopIteration was raised when inferring
a faulty function in a context manager.
Closes #4723
v2.9.3
Compare Source
===========================
Release date: 2021-07-01
Fix a crash that happened when analysing empty function with docstring
in the
similarity
checker.Closes #4648
The
similarity
checker no longer add three trailing whitespaces forempty lines in its report.
v2.9.2
Compare Source
===========================
Release date: 2021-07-01
Fix a crash that happened when analysing code using
type(self)
to accessa class attribute in the
unused-private-member
checker.Closes #4638
Fix a false positive for
unused-private-member
when accessing a private variablewith
self
Closes #4644
Fix false-positive of
unnecessary-dict-index-lookup
andconsider-using-dict-items
for reassigned dict index lookups
Closes #4630
v2.9.1
Compare Source
===========================
Release date: 2021-06-30
Upgrade astroid to 2.6.2
Closes #4631
Closes #4633
v2.9.0
Compare Source
===========================
Release date: 2021-06-29
Python 3.10 is now supported.
Add type annotations to pyreverse dot files
Closes #1548
Fix missing support for detecting deprecated aliases to existing
functions/methods.
Closes #4618
astroid has been upgraded to 2.6.1
Added various deprecated functions/methods for python 3.10, 3.7, 3.6 and 3.3
Fix false positive
useless-type-doc
on ignored argument usingpylint.extensions.docparams
when a function was typed using pep484 but not inside the docstring.
Closes #4117
Closes #4593
setuptools_scm
has been removed and replaced bytbump
in order to nothave hidden runtime dependencies to setuptools
Fix a crash when a test function is decorated with
@pytest.fixture
and astroid can'tinfer the name of the decorator when using
open
withoutwith
.Closes #4612
Added
deprecated-decorator
: Emitted when deprecated decorator is used.Closes #4429
Added
ignore-paths
behaviour. Defined regex patterns are matched against full file path.Close #2541
Fix false negative for
consider-using-with
if calls likeopen()
were used outside of assignment expressions.The warning for
arguments-differ
now signals explicitly the difference it detectedby naming the argument or arguments that changed and the type of change that occurred.
Suppress
consider-using-with
inside context managers.Closes #4430
Added
--fail-on
option to return non-zero exit codes regardless of--fail-under
value.numversion tuple contains integers again to fix multiple pylint's plugins that relied on it
Closes #4420
Fix false-positive
too-many-ancestors
when inheriting from builtin classes,especially from the
collections.abc
moduleCloses #4166
Closes #4415
Stdlib deprecated modules check is moved to stdlib checker. New deprecated
modules are added.
Fix raising false-positive
no-member
on abstract propertiesCreated new error message called
arguments-renamed
which identifies any changes at the parameternames of overridden functions.
Closes #3536
New checker
consider-using-dict-items
. Emitted when iterating over dictionary keys and thenindexing the same dictionary with the key within loop body.
Closes #3389
Don't emit
import-error
if import guarded behindif sys.version_info >= (x, x)
Fix incompatibility with Python 3.6.0 caused by
typing.Counter
andtyping.NoReturn
usageCloses #4412
New checker
use-maxsplit-arg
. Emitted either when accessing only the first or lastelement of
str.split()
.Closes #4440
Add ignore_signatures to duplicate code checker
Closes #3619
Fix documentation errors in "Block disables" paragraph of User Guide.
New checker
unnecessary-dict-index-lookup
. Emitted when iterating over dictionary items(key-value pairs) and accessing the value by index lookup.
Closes #4470
New checker
consider-using-from-import
. Emitted when a submodule/member of a package is imported and aliasedwith the same name.
Closes #2309
Allow comma-separated list in
output-format
and separate output files foreach specified format.
Closes #1798
Make
using-constant-test
detect constant tests consisting of list literals like[]
and[1, 2, 3]
.Improved error message of
unnecessary-comprehension
checker by providing code suggestion.Closes #4499
New checker
unused-private-member
. Emitted when a private member (i.e., starts with__
) of a classis defined but not used.
Closes #4483
Fix false negative of
consider-using-enumerate
when iterating over an attribute.Closes #3657
New checker
invalid-class-object
. Emitted when a non-class is assigned to a__class__
attribute.Closes #585
Fix a crash when a plugin from the configuration could not be loaded and raise an error
'bad-plugin-value' instead
Closes #4555
Added handling of floating point values when parsing configuration from pyproject.toml
Closes #4518
invalid-length-returned
, now also works when nothing at all is returnedfollowing an upgrade in astroid.
logging-format-interpolation
andlogging-not-lazy
, now works on loggerclass created from renamed logging import following an upgrade in astroid.
Fix false-positive
no-member
with generic base classCloses PyCQA/astroid#942
Fix
assigning-non-slot
false-positive with base that inherits fromtyping.Generic
Closes #4509
Closes PyCQA/astroid#999
New checker
invalid-all-format
. Emitted when__all__
has an invalid format,i.e. isn't a
tuple
orlist
.Fix false positive
unused-variable
andundefined-variable
withPattern Matching in Python 3.10
New checker
await-outside-async
. Emitted when await is used outside an async function.Clarify documentation for
typing
extension.Closes #4545
Add new extension
CodeStyleChecker
. It includes checkers that can improve codeconsistency. As such they don't necessarily provide a performance benefit
and are often times opinionated.
New checker
consider-using-tuple
. Emitted when an in-place definedlist or set can be replaced by a tuple.
New checker
consider-using-namedtuple-or-dataclass
. Emitted when dictionary valuescan be replaced by namedtuples or dataclass instances.
Fix error that occurred when using
slice
as subscript for dict.Reduce false-positives around inference of
.value
and.name
properties on
Enum
subclasses, following an upgrade in astroidCloses #1932
Closes #2062
Fix issue with
cached_property
that causedinvalid-overridden-method
errorwhen overriding a
property
.Closes #4023
Fix
unused-import
false positive for imported modules referenced inattribute lookups in type comments.
Closes #4603
v2.8.3
Compare Source
===========================
Release date: 2021-05-31
v2.8.2
Compare Source
===========================
Release date: 2021-04-26
Keep
__pkginfo__.numversion
a tuple to avoid breaking pylint-django.Closes #4405
scm_setuptools has been added to the packaging.
Pylint's tags are now the standard form
vX.Y.Z
and notpylint-X.Y.Z
anymore.New warning message
deprecated-class
. This message is emitted if import or call deprecated class of thestandard library (like
collections.Iterable
that will be removed in Python 3.10).Closes #4388
v2.8.1
Compare Source
===========================
Release date: 2021-04-25
Add numversion back (temporarily) in
__pkginfo__
because it broke Pylama and revert the unnecessarypylint.version
breaking change.Closes #4399
v2.8.0
Compare Source
===========================
Release date: 2021-04-24
New refactoring message
consider-using-with
. This message is emitted if resource-allocating functions or methods of thestandard library (like
open()
orthreading.Lock.acquire()
) that can be used as a context manager are called withouta
with
block.Closes #3413
Resolve false positives on unused variables in decorator functions
Closes #4252
Add new extension
ConfusingConsecutiveElifChecker
. This optional checker emits a refactoring message (R5601confusing-consecutive-elif
)if if/elif statements with different indentation levels follow directly one after the other.
New option
--output=<file>
to output result to a file rather than printing to stdout.Closes #1070
Use a prescriptive message for
unidiomatic-typecheck
Closes #3891
Apply
const-naming-style
to module constants annotated withtyping.Final
The packaging is now done via setuptools exclusively.
doc
,tests
,man
,elisp
andChangelog
arenot packaged anymore - reducing the size of the package by 75%.
Debian packaging is now (officially) done in https://salsa.debian.org/python-team/packages/pylint.
The 'doc' extra-require has been removed.
__pkginfo__
now only contain__version__
(also accessible withpylint.__version__
), other meta-information are stillaccessible with
from importlib import metadata;metadata.metadata('pylint')
.COPYING has been renamed to LICENSE for standardization.
Fix false-positive
used-before-assignment
in function returns.Closes #4301
Updated
astroid
to 2.5.3Closes #2822, #4206, #4284
Add
consider-using-min-max-builtin
check for if statement which could be replaced by Python builtin min or maxCloses #3406
Don't auto-enable postponed evaluation of type annotations with Python 3.10
Update
astroid
to 2.5.4Add new extension
TypingChecker
. This optional checker can detect the use of deprecated typing aliasesand can suggest the use of the alternative union syntax where possible.
(For example, 'typing.Dict' can be replaced by 'dict', and 'typing.Unions' by '|', etc.)
Make sure to check the config options if you plan on using it!
Reactivates old counts in report mode.
Closes #3819
During detection of
inconsistent-return-statements
consider thatassert False
is a return node.Closes #4019
Run will not fail if score exactly equals
config.fail_under
.Functions that never returns may declare
NoReturn
as type hints, so thatinconsistent-return-statements
is not emitted.Closes #4122, #4188
Improved protected access checks to allow access inside class methods
Closes #1159
Fix issue with PEP 585 syntax and the use of
collections.abc.Set
Fix issue that caused class variables annotated with
typing.ClassVar
to beidentified as class constants. Now, class variables annotated with
typing.Final
are identified as such.Closes #4277
Continuous integration with read the doc has been added.
Closes #3850
Don't show
DuplicateBasesError
for attribute accessFix crash when checking
setup.cfg
for pylint config when there are non-ascii characters in thereCloses #4328
Allow code flanked in backticks to be skipped by spellchecker
Closes #4319
Allow Python tool directives (for black, flake8, zimports, isort, mypy, bandit, pycharm) at beginning of comments to be skipped by spellchecker
Closes #4320
Fix issue that caused emacs pylint to fail when used with tramp
Improve check for invalid PEP 585 syntax inside functions
if postponed evaluation of type annotations is enabled
Improve check for invalid PEP 585 syntax as default function arguments
PyCQA/pylint-django
v2.4.4
Compare Source
#​322 <https://github.com/PyCQA/pylint-django/issues/322>
_ and#​323 <https://github.com/PyCQA/pylint-django/issues/323>
_pytest-dev/pytest
v6.2.5
Compare Source
pytest 6.2.5 (2021-08-29)
Trivial/Internal Changes
pluggy 1.0
or later.v6.2.4
Compare Source
pytest 6.2.4 (2021-05-04)
Bug Fixes
pytest-dev/pytest-cov
v2.12.1
Compare Source
toml
requirement to be always be directly required (instead of being required through a coverage extra).This fixes issues with pip-compile (
pip-tools#​1300 <https://github.com/jazzband/pip-tools/issues/1300>
).Contributed by Sorin Sbarnea in
#​472 <https://github.com/pytest-dev/pytest-cov/pull/472>
.show_contexts
.Contributed by Brian Rutledge in
#​473 <https://github.com/pytest-dev/pytest-cov/pull/473>
_.v2.12.0
Compare Source
toml
extra to install requirements in setup.py.Contributed by Christian Riedel in
#​410 <https://github.com/pytest-dev/pytest-cov/pull/410>
_.pytest_cov.__version__
to have the right value (string with version instead of a stringincluding
__version__ =
).setup.py
.Contributed by Chris Sreesangkom in
#​467 <https://github.com/pytest-dev/pytest-cov/pull/467>
_.Contributed by Terence Honles in
#​470 <https://github.com/pytest-dev/pytest-cov/pull/470>
_.pytest-dev/pytest-django
v4.4.0
Compare Source
v4.3.0
Compare Source
https://pytest-django.readthedocs.io/en/latest/changelog.html#v4-3-0-2021-05-15
pypa/twine
v3.4.2
Compare Source
https://pypi.org/project/twine/3.4.2/
Changelog
Configuration
📅 Schedule: "before 7am on monday" (UTC).
🚦 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 WhiteSource Renovate. View repository job log here.