Closed dependabot[bot] closed 1 week ago
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
Package | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|
pypi/black@24.8.0 | environment, eval, filesystem, network, shell, unsafe | 0 |
6.26 MB | JelleZijlstra, ambv, cooperlees, ...2 more |
pypi/mccabe@0.7.0 | eval, filesystem | 0 |
36.1 kB | flox |
pypi/pycodestyle@2.12.1 | environment, filesystem | 0 |
161 kB | IanLee1521, asottile |
pypi/pyflakes@3.2.0 | environment, eval, filesystem, shell | 0 |
307 kB | asottile, bitglue, flox |
🚮 Removed packages: pypi/black@23.3.0, pypi/flake8-absolute-import@1.0.0.1, pypi/flake8-annotations@2.7.0, pypi/flake8@4.0.1, pypi/markupsafe@3.0.2, pypi/mccabe@0.6.1, pypi/pycodestyle@2.8.0, pypi/pyflakes@2.4.0
@dependabot rebase
This PR will fail until someone runs black --fix
on all the changes
[!IMPORTANT]
Review skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
@mvadari black
does not have a command line option titled --fix
. As per their recent release notes, black
does not support Python 3.8 anymore.
In my local system, I don't observe these errors, if black is executed with the following environment:
➜ xrpl-py git:(dependabot/pip/black-24.8.0) python --version
Python 3.11.6
➜ xrpl-py git:(dependabot/pip/black-24.8.0) poetry --version
Poetry (version 1.8.3)
Can we upgrade the version of Python and Poetry to more recent values? Is it necessary to set the CI/CD environment to the minimum supported Python version?
black
does not have a command line option titled--fix
. As per their recent release notes,black
does not support Python 3.8 anymore.
Sorry, I remembered the wrong syntax - just poetry run black xrpl
will fix everything.
In my local system, I don't observe these errors, if black is executed with the following environment:
➜ xrpl-py git:(dependabot/pip/black-24.8.0) python --version Python 3.11.6 ➜ xrpl-py git:(dependabot/pip/black-24.8.0) poetry --version Poetry (version 1.8.3)
I observe the errors with these settings:
xrpl-py % poetry run python --version
Python 3.11.4
xrpl-py % poetry --version
Poetry (version 1.8.4)
Can we upgrade the version of Python and Poetry to more recent values? Is it necessary to set the CI/CD environment to the minimum supported Python version?
We shouldn't remove support for old Python versions without a need. Why remove backwards compatibility if you don't have to?
@mvadari I'm unable to replicate the behavior of the CI/CD step. I don't get the BLK100
error message, despite having identical environment installation.
➜ xrpl-py git:(dependabot/pip/black-24.8.0) poetry run flake8 xrpl tests snippets --darglint-ignore-regex="^_(.*)"
➜ xrpl-py git:(dependabot/pip/black-24.8.0) black --version
black, 24.8.0 (compiled: yes)
Python (CPython) 3.8.18
➜ xrpl-py git:(dependabot/pip/black-24.8.0) python --version
Python 3.8.18
➜ xrpl-py git:(dependabot/pip/black-24.8.0) poetry --version
Poetry (version 1.8.3)
➜ xrpl-py git:(dependabot/pip/black-24.8.0) poetry run flake8 xrpl tests snippets --darglint-ignore-regex="^_(.*)"
➜ xrpl-py git:(dependabot/pip/black-24.8.0)
As far as I see it, these environment variables are identical to the CI/CD system.(Except for the MacOS and arm64 architecture)
I didn't find any usage of @deprecated
decorator in the codebase. As indicated in this commit: 02fc14a, we can remove these two dependencies.
Older rippled API versions are indicated by explicit version numbers, rather than a deprecated
tag.
I didn't find any usage of
@deprecated
decorator in the codebase. As indicated in this commit: 02fc14a, we can remove these two dependencies.Older rippled API versions are indicated by explicit version numbers, rather than a
deprecated
tag.
I believe all the @deprecated
functions were removed. IMO we shouldn't remove the dependencies, in case we want to deprecate functions in the future.
I believe all the
@deprecated
functions were removed. IMO we shouldn't remove the dependencies, in case we want to deprecate functions in the future.
Are there valid uses for the @deprecated
decorator? Won't we gate the "deprecated" methods under older API versions? Why would we need this dependency?
Are there valid uses for the
@deprecated
decorator? Won't we gate the "deprecated" methods under older API versions? Why would we need this dependency?
It's used for deprecated xrpl-py things, not deprecated rippled things.
A summary of the manual updates to this PR:
black@v24.8.0
and the existing version offlake8
dependency. I suspect this is because we are using an old version offlake8
.flake8
to the latest version which was released 3 months ago. Release History: https://pypi.org/project/flake8/#historyflake8-annotations
is not compatible withflake8@v7.1.1
. Ideally, we will need to upgrade it to a compatible version. But that would increase the size of changes in this PR. Removing this dependency has not broken any of the tests. I believe it does not break any functionality of the library either.MarkupSafe
dev-dependency (https://pypi.org/project/MarkupSafe/) is not used inside the xrpl-py client library. I'd have preferred to remove the dead-dependencies in a separate PR, but this PR was frozen due to an old poetry.lock file after this commit: 0b11443. I took this opportunity to clean up the unused dependency.black
automatically.Bumps black from 23.3.0 to 24.8.0.
Release notes
Sourced from black's releases.
... (truncated)
Changelog
Sourced from black's changelog.
... (truncated)
Commits
b965c2a
Prepare release 24.8.0 (#4426)9ccf279
Documentfind_project_root
ignoringpyproject.toml
without[tool.black]
...14b6e61
fix: Enhace black efficiently to skip directories listed in .gitignore (#4415)b1c4dd9
fix: respect braces better in f-string parsing (#4422)4b4ae43
Fix incorrect linenos on fstring tokens with escaped newlines (#4423)7fa1faf
docs: fix the installation command of extra for blackd (#4413)8827acc
Bump sphinx from 7.3.7 to 7.4.0 in /docs (#4404)b0da11d
Bump furo from 2024.5.6 to 2024.7.18 in /docs (#4409)721dff5
fix: avoid formatting backslash strings inside f-strings (#4401)7e2afc9
Updateactions/checkout
to v4 to stop node deprecation warnings (#4379)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show