chore(deps): update all-dev-dependencies #33
Reference in New Issue
Block a user
Delete Branch "renovate/all-dev-dependencies"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
24.2.0->24.10.0^0.29.0->^0.33.01.8.0->1.15.03.1.0->3.3.6Release Notes
psf/black (black)
v24.10.0Compare Source
Highlights
mypyc-compiled wheels. (#4436) (#4449)
safety issue in Python 3.12.5 that can cause Black's AST safety checks to fail. Please
use Python 3.12.6 or Python 3.12.4 instead. (#4447)
Stable style
X | Ystyle unions.(#4453)
%%magic (#4462)Preview style
def fn(*args: *tuple[*Ts, T]) -> None: pass) (#4440)Caching
--unstable(#4466)Packaging
blackdnow requires a newer version of aiohttp. (#4451)Output
v24.8.0Compare Source
Stable style
# fmt: offis used before a closing parenthesis or bracket. (#4363)Packaging
linked. This improves the PyPI listing for Black. (#4345)
Parser
multiline string (#4339)
(#4401)
\{inside f-strings very well (#4422)(#4423)
Performance
.gitignore(#4415)Blackd
v24.4.2Compare Source
This is a bugfix release to fix two regressions in the new f-string parser introduced in
24.4.1.
Parser
Performance
v24.4.1Compare Source
Highlights
Stable style
Parser
by PEP 696 (#4327)
Integrations
git archiveis skipped (#4313)v24.4.0Compare Source
Stable style
Preview style
ifguards incaseblocks are now wrapped in parentheses when the line is too long.(#4269)
Integrations
use_pyprojectto the GitHub Actionpsf/black. This will read theBlack version from
pyproject.toml. (#4294)v24.3.0Compare Source
Highlights
This release is a milestone: it fixes Black's first CVE security vulnerability. If you
run Black on untrusted input, or if you habitually put thousands of leading tab
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
CVE-2024-21503.
This release also fixes a bug in Black's AST safety check that allowed Black to make
incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
Stable style
of Black would incorrectly format the contents of certain unusual f-strings containing
nested strings with the same quote type. Now, Black will crash on such strings until
support for the new f-string syntax is implemented. (#4270)
(#4273)
Performance
characters. This fixes
CVE-2024-21503.
(#4278)
Documentation
--checkis used with--quiet(#4236)callowayproject/bump-my-version (bump-my-version)
v0.33.0Compare Source
Compare the full difference.
Fixes
Fixed warnings in documentation. 782077d
Refactored PEP621 tests into a class. 2a4f12a
The tests are pretty much the same but renamed for clarity.
Fixed: allow omitting the current version in sample-config. 6b369fe
If the current version is explicitly left empty during the
sample-configquestionnaire, the resultingtool.bumpversiontablenow lacks a
current_versionkey, and will fall back to PEP 621project.version(if not dynamic). The instruction text specificallyhints at this new functionality.
New
Add test for moveable tags. df787f1
New feature: retrieve and update the PEP 621 project version, if possible. 3032450
When determining the current version, and if
tool.bumpversion.current_versionis not set, attempt to retrieve theversion from
project.versionà la PEP 621. If that setting is notset, or if the version is explicitly marked as dynamically set, then
continue with querying SCM tags.
When updating the configuration during bumping, if we previously
successfully retrieved a PEP 621 version, then update the
project.versionfield inpyproject.tomlas well. We always update,even if the true current version was read from
tool.bumpversion.current_versioninstead ofproject.version.The docs have been updated; specifically, the "multiple replacements in
one file" howto and the reference for
current_version.The tests have been adapted: the new
pep621_infoproperty wouldotherwise trip up the old test output, and the
Nonedefault would tripup the TOML serializer. Additionally, new tests assert that
project.version(and correspondingly, thepep621_infoproperty) iscorrectly honored or ignored, depending on the other circumstances.
Other
[pre-commit.ci] pre-commit autoupdate. 59e8634
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.6 → v0.9.7
Updates
v0.32.2Compare Source
Compare the full difference.
Fixes
Fixed coverage issue. b0c46a3
Refactor SCMInfo and Config imports. 49995c6
Other
[pre-commit.ci] pre-commit autoupdate. b786638
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.4 → v0.9.6
v0.32.1Compare Source
Compare the full difference.
Fixes
Fix rich-click deprecation. e1fb9fa
Fix Python 3.8 support. 9b2d894
v0.32.0Compare Source
Compare the full difference.
Fixes
Refactor CLI config-file option to use @config_option decorator. cd06cbd
Replaced the manual
--config-fileoption setup with the@config_optiondecorator for cleaner and reusable configuration management. This change simplifies the code and enhances maintainability by consolidating the configuration logic.New
Added pytest-localserver as a test dependency. c84243d
Add ConfigOption for flexible configuration. 1625248
Introduce
ConfigOptionand related utilities inbumpversion.click_configto handle configuration file paths or URLs. Includes tests for processing options, resolving paths/URLs, and handling errors inresolve_conf_locationanddownload_url.Added httpx as a dependency. 450154e
Other
[pre-commit.ci] pre-commit autoupdate. 17e8301
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.9.4
Bump actions/setup-python in the github-actions group. c0771b0
Bumps the github-actions group with 1 update: actions/setup-python.
Updates
actions/setup-pythonfrom 5.3.0 to 5.4.0updated-dependencies: - dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Updates
Updated other subcommands with the new config_option. 279838a
Improve config resolution and add error handling for paths. 43f0435
Refactor
process_valueto handleNonevalues and raise aBumpVersionErrorfor non-existent files. Update related tests to ensure correct behavior for missing, existing, and URL-based config paths. These changes enhance robustness and user feedback in handling configuration inputs.v0.31.1Compare Source
Compare the full difference.
Fixes
Fix type hinting incompatibility in Python 3.9. 96b29f5
Refactor to use Pathlike type alias for path representation
Unified path type handling across the codebase by introducing the
Pathliketype alias (Union[str, Path]). This improves readability and consistency in path-related functions and methods, reducing redundancy. Updated corresponding type annotations, imports, and tests accordingly.v0.31.0Compare Source
Compare the full difference.
New
Add support for serializing SCMInfo in YAML, JSON, and output. e8611b2
Ensure SCMInfo objects can be serialized into YAML and JSON formats, improving compatibility with configuration and output displays. Updated dumper functions and tests to reflect the new changes and include SCMInfo details in the configurations.
Updates
v0.30.2Compare Source
Compare the full difference.
Fixes
Fix #388 -
python3.8type hint compatibility. 5744f86This should address the following error when running
bump-my-versionin a
python3.8environment:Other
[pre-commit.ci] pre-commit autoupdate. ea3267a
updates: - github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.9.3
v0.30.1Compare Source
Compare the full difference.
Fixes
Fixing issues with 3.9 compatibility. cd2b193
Fixes #284. Add UTF-8 encoding to subprocess.run in run_command. 6c856b6
Explicitly set the encoding to "utf-8" in the subprocess.run call to ensure consistent handling of command output. This prevents potential encoding-related issues when processing command results.
v0.30.0Compare Source
Compare the full difference.
Fixes
Fixed normalized paths in is_subpath. d1c180b
Fix formatting in docs. 5fe387c
New
Add handling for git path addition with new test coverage. 8ad5c82
Enhances the
Gitclass by adding theadd_pathmethod, improving control over tracked files. Includes comprehensive test cases to validate subpath handling, handle command failures, and ensure robustness against invalid inputs. Also includes minor refactoring with updated exception handling and code comments.Added tests for
utils.is_subpath. 4e993edAdd support for 'moveable_tags' configuration option. 2a2f1e6
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
Add support for 'moveable_tags' configuration option. dd1efa5
This update introduces a new 'moveable_tags' field in the configuration model, with appropriate defaults. Test fixture files have been updated to reflect this change. This allows better handling of tags that can be relocated during versioning operations.
Added additional logging verbosity configuration in setup_logging. 2b420b8
Updated the logging verbosity levels to include formatting options for different verbosity levels. Added a new level (3) with detailed output including file path and line number. Refactored setup_logging to properly handle verbosity and log format settings.
Other
Merge remote-tracking branch 'origin/moving-tags' into moving-tags. a2b7bd1
[pre-commit.ci] pre-commit autoupdate. d03b1da
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.2
[pre-commit.ci] pre-commit autoupdate. 584711b
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.8.6
[pre-commit.ci] pre-commit autoupdate. c583694
updates: - github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4
Bump softprops/action-gh-release from 1 to 2 in the github-actions group. 787c241
Bumps the github-actions group with 1 update: softprops/action-gh-release.
Updates
softprops/action-gh-releasefrom 1 to 2updated-dependencies: - dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
signed-off-by: dependabot[bot] support@github.com
Updates
Updated some tests. 4013d86
Remove legacy SCM implementation and add new SCM tests. ddbe21e
Replaced the outdated
scm_old.pywith a focused and updated SCM implementation. Added extensive tests for the newSCMInfobehavior, path handling, and commit/tag logic, ensuring robust functionality for Git and Mercurial. Updated fixtures and test configurations accordingly.Rename
scm.pytoscm_old.pyand add new utility functions. dac965dRefactored SCM-related imports to use the renamed
scm_old.pyfor better module organization. Introducedis_subpathutility to simplify path checks and added support for moveable tags in version control systems. These changes improve code structure and extend functionality for tagging.python/mypy (mypy)
v1.15.0Compare Source
v1.14.1Compare Source
v1.14.0Compare Source
v1.13.0Compare Source
v1.12.1Compare Source
os.pathstubs affecting use ofos.PathLike[Any](Shantanu, PR 17995)v1.12.0Compare Source
v1.11.2Compare Source
TypedDictitem types before storing (Ivan Levkivskyi, PR 17640)v1.11.1Compare Source
RawExpressionType.acceptcrash with--cache-fine-grained(Anders Kaseorg, PR 17588)typing.TypeAliasTypebeing undefined on python < 3.12 (Nikita Sobolev, PR 17558)types.GenericAliaslookup crash (Shantanu, PR 17543)v1.11.0Compare Source
v1.10.1Compare Source
v1.10.0Compare Source
v1.9.0Compare Source
pylint-dev/pylint (pylint)
v3.3.6Compare Source
What's new in Pylint 3.3.6?
Release date: 2025-03-20
False Positives Fixed
Fix a false positive for
used-before-assignmentwhen an inner function's return typeannotation is a class defined at module scope.
Closes #9391
v3.3.5Compare Source
What's new in Pylint 3.3.5?
Release date: 2025-03-09
False Positives Fixed
Fix false positives for
use-implicit-booleaness-not-comparison,use-implicit-booleaness-not-comparison-to-stringand
use-implicit-booleaness-not-comparison-to-zerowhen chained comparisons are checked.Closes #10065
Fix a false positive for
invalid-getnewargs-ex-returnedwhen the tuple or dict has been assigned to a name.Closes #10208
Remove
getoptandoptparsefrom the list of deprecated modules.Closes #10211
Other Bug Fixes
Fixed conditional import x.y causing false positive possibly-used-before-assignment.
Closes #10081
Fix a crash when something besides a class is found in an except handler.
Closes #10106
Fixed raising invalid-name when using camelCase for private methods with two leading underscores.
Closes #10189
Other Changes
Upload release assets to PyPI via Trusted Publishing.
Closes #10256
v3.3.4Compare Source
Other Bug Fixes
Fixes "skipped files" count calculation; the previous method was displaying an arbitrary number.
Closes #10073
Fixes a crash that occurred when pylint was run in a container on a host with cgroupsv2 and restrictions on CPU usage.
Closes #10103
Relaxed the requirements for isort so pylint can benefit from isort 6.
Closes #10203
v3.3.3Compare Source
What's new in Pylint 3.3.3?
Release date: 2024-12-23
False Positives Fixed
Fix false positives for
undefined-variablefor classes using Python 3.12generic type syntax.
Closes #9335
Fix a false positive for
use-implicit-booleaness-not-len. No lint should be emitted forgenerators (
lenis not defined for generators).Refs #10100
Other Bug Fixes
Fix
Unable to import 'collections.abc' (import-error)on Python 3.13.1.Closes #10112
v3.3.2Compare Source
False Positives Fixed
Fix a false positive for
potential-index-errorwhen an indexed iterablecontains a starred element that evaluates to more than one item.
Closes #10076
Other Bug Fixes
Fixes the issue with --source-root option not working when the source files are in a subdirectory of the source root (e.g. when using a /src layout).
Closes #10026
v3.3.1Compare Source
What's new in Pylint 3.3.1?
Release date: 2024-09-24
False Positives Fixed
Fix regression causing some f-strings to not be inferred as strings.
Closes #9947
v3.3.0Compare Source
Release date: 2024-09-20
Changes requiring user actions
We migrated
symilarto argparse, from getopt, so the error and help output changed(for the better). We exit with 2 instead of sometime 1, sometime 2. The error output
is not captured by the runner anymore. It's not possible to use a value for the
boolean options anymore (
--ignore-comments 1should become--ignore-comments).Refs #9731
New Features
Add new
declare-non-sloterror which reports when a class has a__slots__member and a type hint on the class is not present in__slots__.Refs #9499
New Checks
Added
too-many-positional-argumentsto allow distinguishing the configuration for too manytotal arguments (with keyword-only params specified after
*) from the configurationfor too many positional-or-keyword or positional-only arguments.
As part of evaluating whether this check makes sense for your project, ensure you
adjust the value of
--max-positional-arguments.Closes #9099
Add
using-exception-groups-in-unsupported-versionandusing-generic-type-syntax-in-unsupported-versionfor uses of Python 3.11+ or3.12+ features on lower supported versions provided with
--py-version.Closes #9791
Add
using-assignment-expression-in-unsupported-versionfor uses of:=(walrus operator)on Python versions below 3.8 provided with
--py-version.Closes #9820
Add
using-positional-only-args-in-unsupported-versionfor uses of positional-only args onPython versions below 3.8 provided with
--py-version.Closes #9823
Add
unnecessary-default-type-argsto thetypingextension to detect the useof unnecessary default type args for
typing.Generatorandtyping.AsyncGenerator.Refs #9938
False Negatives Fixed
Fix computation of never-returning function:
Neveris handled in addition toNoReturn, and priority is given to the explicit--never-returning-functionsoption.Closes #7565.
Fix a false negative for
await-outside-asyncwhen await is inside Lambda.Refs #9653
Fix a false negative for
duplicate-argument-nameby includingpositional-only,*argsand**kwargsarguments in the check.Closes #9669
Fix false negative for
multiple-statementswhen multiple statements are present onelseandfinallylines oftry.Refs #9759
Fix false negatives when
isinstancedoes not have exactly two arguments.pylint now emits a
too-many-function-argsorno-value-for-parameterappropriately for
isinstancecalls.Closes #9847
Other Bug Fixes
--enablewith--disable=allnow produces an error, when an unknown msg code is used. Internalpylintmessages are no longer affected by--disable=all.Closes #9403
Impossible to compile regexes for paths in the configuration or argument given to pylint won't crash anymore but
raise an argparse error and display the error message from
re.compileinstead.Closes #9680
Fix a bug where a
tox.inifile with pylint configuration was ignored and it exists in the current directory..cfgand.inifiles containing aPylintconfiguration may now use a section named[pylint]. This enhancement impacts the scenario where these file types are used as defaults when they are present and have not been explicitly referred to, using the--rcfileoption.Closes #9727
Improve file discovery for directories that are not python packages.
Closes #9764
Other Changes
Remove support for launching pylint with Python 3.8.
Code that supports Python 3.8 can still be linted with the
--py-version=3.8setting.Refs #9774
Add support for Python 3.13.
Refs #9852
Internal Changes
All variables, classes, functions and file names containing the word 'similar', when it was,
in fact, referring to 'symilar' (the standalone program for the duplicate-code check) were renamed
to 'symilar'.
Closes #9734
Remove old-style classes (Python 2) code and remove check for new-style class since everything is new-style in Python 3. Updated doc for exception checker to remove reference to new style class.
Refs #9925
v3.2.7Compare Source
What's new in Pylint 3.2.7?
Release date: 2024-08-31
False Positives Fixed
Fixed a false positive
unreachableforNoReturncoroutine functions.Closes #9840
Other Bug Fixes
Fix crash in refactoring checker when calling a lambda bound as a method.
Closes #9865
Fix a crash in
undefined-loop-variablewhen providing theiterableargument toenumerate().Closes #9875
Fix to address indeterminacy of error message in case a module name is same as another in a separate namespace.
Refs #9883
v3.2.6Compare Source
What's new in Pylint 3.2.6?
Release date: 2024-07-21
False Positives Fixed
Quiet false positives for
unexpected-keyword-argwhen pylint cannotdetermine which of two or more dynamically defined classes is being instantiated.
Closes #9672
Fix a false positive for
missing-param-docwhere a method which is decorated withtyping.overloadwas expected to have a docstring specifying its parameters.Closes #9739
Fix a regression that raised
invalid-nameon class attributes merelyoverriding invalid names from an ancestor.
Closes #9765
Treat
assert_never()the same way when imported fromtyping_extensions.Closes #9780
Fix a false positive for
consider-using-min-max-builtinwhen the assignment target is an attribute.Refs #9800
Other Bug Fixes
Fix an
AssertionErrorarising from properties that return partial functions.Closes #9214
Fix a crash when a subclass extends
__slots__.Closes #9814
v3.2.5Compare Source
What's new in Pylint 3.2.5 ?
Release date: 2024-06-28
Other Bug Fixes
Fixed a false positive
unreachable-codewhen usingtyping.Anyas return type in python3.8, the
typing.NoReturnare not taken into account anymore for python 3.8 however.Closes #9751
v3.2.4Compare Source
What's new in Pylint 3.2.4?
Release date: 2024-06-26
False Positives Fixed
Prevent emitting
possibly-used-before-assignmentwhen relying on namesonly potentially not defined in conditional blocks guarded by functions
annotated with
typing.Neverortyping.NoReturn.Closes #9674
Other Bug Fixes
Fixed a crash when the lineno of a variable used as an annotation wasn't available for
undefined-variable.Closes #8866
Fixed a crash when the
startvalue in anenumeratewas non-constant and impossible to infer(like in
enumerate(apples, start=int(random_apple_index)) forunnecessary-list-index-lookup.Closes #9078
Fixed a crash in
symilarwhen the-dor-ishort option were not properly recognized.It's still impossible to do
-d=1(you must do-d 1).Closes #9343
v3.2.3Compare Source
False Positives Fixed
Classes with only an Ellipsis (
...) in their body do not trigger 'multiple-statements'anymore if they are inlined (in accordance with black's 2024 style).
Closes #9398
Fix a false positive for
redefined-outer-namewhen there is a name defined in an exception-handling block which shares the same name as a local variable that has been defined in a function body.Closes #9671
Fix a false positive for
use-yield-fromwhen using the return value from theyieldatom.Closes #9696
v3.2.2Compare Source
What's new in Pylint 3.2.2?
Release date: 2024-05-20
False Positives Fixed
Fix multiple false positives for generic class syntax added in Python 3.12 (PEP 695).
Closes #9406
Exclude context manager without cleanup from
contextmanager-generator-missing-cleanupchecks.Closes #9625
v3.2.1Compare Source
What's new in Pylint 3.2.1?
Release date: 2024-05-18
False Positives Fixed
Exclude if/else branches containing terminating functions (e.g.
sys.exit())from
possibly-used-before-assignmentchecks.Closes #9627
Don't emit
typevar-name-incorrect-variancewarnings for PEP 695 style TypeVars.The variance is inferred automatically by the type checker.
Adding
_coor_contrasuffix can help to reason about TypeVar.Refs #9638
Fix a false positive for
possibly-used-before-assignmentwhen usingtyping.assert_never()(3.11+) to indicate exhaustiveness.Closes #9643
Other Bug Fixes
Fix a false negative for
--ignore-patternswhen the directory to be linted is specified using a dot(.) and all files are ignored instead of only the files whose name begin with a dot.Closes #9273
Restore "errors / warnings by module" section to report output (with
-ry).Closes #9145
trailing-comma-tupleshould now be correctly emitted when it was disabled globallybut enabled via local message control, after removal of an over-optimisation.
Refs #9608
Add
--prefer-stubs=yesoption to opt-in to the astroid 3.2 featurethat prefers
.pyistubs over same-named.pyfiles. This has thepotential to reduce
no-membererrors but at the cost of more errorssuch as
not-an-iterablefrom function bodies appearing as....Defaults to
no.Closes #9626
Closes #9623
Internal Changes
Update astroid version to 3.2.1. This solves some reports of
RecursionErrorand also makes the prefer .pyi stubs feature in astroid 3.2.0 opt-in
with the aforementioned
--prefer-stubs=yoption.Refs #9139
v3.2.0Compare Source
What's new in Pylint 3.2.0?
Release date: 2024-05-14
Of note: a
githubreporter, two new checks (possibly-used-before-assignmentandcontextmanager-generator-missing-cleanup), performance improvements, and anastroidupgrade providing support for@overloadand.pyistubs.New Features
Understand
six.PY2andsix.PY3for conditional imports.Closes #3501
A new
githubreporter has been added. This reporter returns the output ofpylintin a format thatGithub can use to automatically annotate code. Use it with
pylint --output-format=githubon your Github Workflows.Closes #9443.
New Checks
Add check
possibly-used-before-assignmentwhen relying on names after anif/elseswitch when one branch failed to define the name, raise, or return.
Closes #1727
Checks for generators that use contextmanagers that don't handle cleanup properly.
Is meant to raise visibilty on the case that a generator is not fully exhausted and the contextmanager is not cleaned up properly.
A contextmanager must yield a non-constant value and not handle cleanup for GeneratorExit.
The using generator must attempt to use the yielded context value
with x() as yand not justwith x().Closes #2832
False Negatives Fixed
If and Try nodes are now checked for useless return statements as well.
Closes #9449.
Fix false negative for
property-with-parametersin the case of parameters which arepositional-only,keyword-only,variadic positionalorvariadic keyword.Closes #9584
False Positives Fixed
pylint now understands the
@overloaddecorator return values better.Closes #4696
Refs #9606
Performance Improvements
Ignored modules are now not checked at all, instead of being checked and then
ignored. This should speed up the analysis of large codebases which have
ignored modules.
Closes #9442
ImportChecker's logic has been modified to avoid context files when possible. This makes it possible
to cache module searches on astroid and reduce execution times.
Refs #9310.
An internal check for
trailing-comma-tuplebeing enabled for a file or not is nowdone once per file instead of once for each token.
Refs #9608.
v3.1.1Compare Source
What's new in Pylint 3.1.1?
Release date: 2024-05-13
False Positives Fixed
Treat
attrs.defineandattrs.frozenas dataclass decorators intoo-few-public-methodscheck.Closes #9345
Fix a false positive with
singledispatchmethod-functionwhen a method is decorated with bothfunctools.singledispatchmethodandstaticmethod.Closes #9531
Fix a false positive for
consider-using-dict-itemswhen iterating usingkeys()and then deleting an item using the key as a lookup.Closes #9554
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 Renovate Bot.