From bfefaee2166265b78beecdb1b6df9b721a3e56b7 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 18 Nov 2024 12:13:14 -0700
Subject: [PATCH] chore(deps-dev): bump ruff from 0.7.3 to 0.7.4 (#257)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.3 to 0.7.4.
Release notes
Sourced from ruff's
releases.
0.7.4
Release Notes
Preview features
- [
flake8-datetimez
] Detect usages of
datetime.max
/datetime.min
(DTZ901
) (#14288)
- [
flake8-logging
] Implement
root-logger-calls
(LOG015
) (#14302)
- [
flake8-no-pep420
] Detect empty implicit namespace
packages (INP001
) (#14236)
- [
flake8-pyi
] Add "replace with
Self
" fix (PYI019
) (#14238)
- [
perflint
] Implement quick-fix for
manual-list-comprehension
(PERF401
) (#13919)
- [
pylint
] Implement shallow-copy-environ
(W1507
) (#14241)
- [
ruff
] Implement none-not-at-end-of-union
(RUF036
) (#14314)
- [
ruff
] Implementation unsafe-markup-call
from flake8-markupsafe
plugin (RUF035
) (#14224)
- [
ruff
] Report problems for attrs
dataclasses (RUF008
, RUF009
) (#14327)
Rule changes
- [
flake8-boolean-trap
] Exclude dunder methods that
define operators (FBT001
) (#14203)
- [
flake8-pyi
] Add "replace with
Self
" fix (PYI034
) (#14217)
- [
flake8-pyi
] Always autofix
duplicate-union-members
(PYI016
) (#14270)
- [
flake8-pyi
] Improve autofix for nested and mixed type
unions for unnecessary-type-union
(PYI055
) (#14272)
- [
flake8-pyi
] Mark fix as unsafe when type annotation
contains comments for duplicate-literal-member
(PYI062
) (#14268)
Server
- Use the current working directory to resolve settings from
ruff.configuration
(#14352)
Bug fixes
- Avoid conflicts between
PLC014
(useless-import-alias
) and I002
(missing-required-import
) by considering
lint.isort.required-imports
for PLC014
(#14287)
- [
flake8-type-checking
] Skip quoting annotation if it
becomes invalid syntax (TCH001
)
- [
flake8-pyi
] Avoid using typing.Self
in
stub files pre-Python 3.11 (PYI034
) (#14230)
- [
flake8-pytest-style
] Flag pytest.raises
call with keyword argument expected_exception
(PT011
) (#14298)
- [
flake8-simplify
] Infer "unknown" truthiness
for literal iterables whose items are all unpacks (SIM222
)
(#14263)
- [
flake8-type-checking
] Fix false positives for
typing.Annotated
(TCH001
) (#14311)
- [
pylint
] Allow await
at the top-level
scope of a notebook (PLE1142
) (#14225)
- [
pylint
] Fix miscellaneous issues in
await-outside-async
detection (PLE1142
) (#14218)
- [
pyupgrade
] Avoid applying PEP 646 rewrites in invalid
contexts (UP044
) (#14234)
- [
pyupgrade
] Detect permutations in redundant open modes
(UP015
) (#14255)
- [
refurb
] Avoid triggering
hardcoded-string-charset
for reordered sets
(FURB156
) (#14233)
- [
refurb
] Further special cases added to
verbose-decimal-constructor
(FURB157
) (#14216)
- [
refurb
] Use UserString
instead of
non-existent UserStr
(FURB189
) (#14209)
- [
ruff
] Avoid treating lowercase letters as #
noqa
codes (RUF100
) (#14229)
- [
ruff
] Do not report when Optional
has no
type arguments (RUF013
) (#14181)
Documentation
- Add "Notebook behavior" section for
F704
,
PLE1142
(#14266)
- Document comment policy around fix safety (#14300)
... (truncated)
Changelog
Sourced from ruff's
changelog.
0.7.4
Preview features
- [
flake8-datetimez
] Detect usages of
datetime.max
/datetime.min
(DTZ901
) (#14288)
- [
flake8-logging
] Implement
root-logger-calls
(LOG015
) (#14302)
- [
flake8-no-pep420
] Detect empty implicit namespace
packages (INP001
) (#14236)
- [
flake8-pyi
] Add "replace with
Self
" fix (PYI019
) (#14238)
- [
perflint
] Implement quick-fix for
manual-list-comprehension
(PERF401
) (#13919)
- [
pylint
] Implement shallow-copy-environ
(W1507
) (#14241)
- [
ruff
] Implement none-not-at-end-of-union
(RUF036
) (#14314)
- [
ruff
] Implementation unsafe-markup-call
from flake8-markupsafe
plugin (RUF035
) (#14224)
- [
ruff
] Report problems for attrs
dataclasses (RUF008
, RUF009
) (#14327)
Rule changes
- [
flake8-boolean-trap
] Exclude dunder methods that
define operators (FBT001
) (#14203)
- [
flake8-pyi
] Add "replace with
Self
" fix (PYI034
) (#14217)
- [
flake8-pyi
] Always autofix
duplicate-union-members
(PYI016
) (#14270)
- [
flake8-pyi
] Improve autofix for nested and mixed type
unions for unnecessary-type-union
(PYI055
) (#14272)
- [
flake8-pyi
] Mark fix as unsafe when type annotation
contains comments for duplicate-literal-member
(PYI062
) (#14268)
Server
- Use the current working directory to resolve settings from
ruff.configuration
(#14352)
Bug fixes
- Avoid conflicts between
PLC014
(useless-import-alias
) and I002
(missing-required-import
) by considering
lint.isort.required-imports
for PLC014
(#14287)
- [
flake8-type-checking
] Skip quoting annotation if it
becomes invalid syntax (TCH001
)
- [
flake8-pyi
] Avoid using typing.Self
in
stub files pre-Python 3.11 (PYI034
) (#14230)
- [
flake8-pytest-style
] Flag pytest.raises
call with keyword argument expected_exception
(PT011
) (#14298)
- [
flake8-simplify
] Infer "unknown" truthiness
for literal iterables whose items are all unpacks (SIM222
)
(#14263)
- [
flake8-type-checking
] Fix false positives for
typing.Annotated
(TCH001
) (#14311)
- [
pylint
] Allow await
at the top-level
scope of a notebook (PLE1142
) (#14225)
- [
pylint
] Fix miscellaneous issues in
await-outside-async
detection (PLE1142
) (#14218)
- [
pyupgrade
] Avoid applying PEP 646 rewrites in invalid
contexts (UP044
) (#14234)
- [
pyupgrade
] Detect permutations in redundant open modes
(UP015
) (#14255)
- [
refurb
] Avoid triggering
hardcoded-string-charset
for reordered sets
(FURB156
) (#14233)
- [
refurb
] Further special cases added to
verbose-decimal-constructor
(FURB157
) (#14216)
- [
refurb
] Use UserString
instead of
non-existent UserStr
(FURB189
) (#14209)
- [
ruff
] Avoid treating lowercase letters as #
noqa
codes (RUF100
) (#14229)
- [
ruff
] Do not report when Optional
has no
type arguments (RUF013
) (#14181)
Documentation
- Add "Notebook behavior" section for
F704
,
PLE1142
(#14266)
- Document comment policy around fix safety (#14300)
Commits
ed7b98c
Bump version to 0.7.4 (#14358)
6591775
[flake8-type-checking
] Skip quoting annotation if it
becomes invalid syntax...
1f82731
Use CWD to resolve settings from ruff.configuration
(#14352)
874da9c
[red-knot] Display raw characters for string literal (#14351)
375cead
Sync vendored typeshed stubs (#14350)
9ec690b
[red-knot] Add support for string annotations (#14151)
a48d779
[red-knot] function signature representation (#14304)
ba6c7f6
[pylint
] Remove check for dot in alias name in
`useless-import-alias (PLC04...
8095ff0
enforce required imports even with useless alias (#14287)
24cd592
Avoid module lookup for known classes when possible (#14343)
- Additional commits viewable in compare
view
[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.7.3&new-version=0.7.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
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 ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
poetry.lock | 40 ++++++++++++++++++++--------------------
pyproject.toml | 2 +-
2 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/poetry.lock b/poetry.lock
index f980992..4d8372e 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -1457,29 +1457,29 @@ pyasn1 = ">=0.1.3"
[[package]]
name = "ruff"
-version = "0.7.3"
+version = "0.7.4"
description = "An extremely fast Python linter and code formatter, written in Rust."
optional = false
python-versions = ">=3.7"
files = [
- {file = "ruff-0.7.3-py3-none-linux_armv6l.whl", hash = "sha256:34f2339dc22687ec7e7002792d1f50712bf84a13d5152e75712ac08be565d344"},
- {file = "ruff-0.7.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:fb397332a1879b9764a3455a0bb1087bda876c2db8aca3a3cbb67b3dbce8cda0"},
- {file = "ruff-0.7.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:37d0b619546103274e7f62643d14e1adcbccb242efda4e4bdb9544d7764782e9"},
- {file = "ruff-0.7.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d59f0c3ee4d1a6787614e7135b72e21024875266101142a09a61439cb6e38a5"},
- {file = "ruff-0.7.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:44eb93c2499a169d49fafd07bc62ac89b1bc800b197e50ff4633aed212569299"},
- {file = "ruff-0.7.3-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6d0242ce53f3a576c35ee32d907475a8d569944c0407f91d207c8af5be5dae4e"},
- {file = "ruff-0.7.3-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:6b6224af8b5e09772c2ecb8dc9f3f344c1aa48201c7f07e7315367f6dd90ac29"},
- {file = "ruff-0.7.3-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c50f95a82b94421c964fae4c27c0242890a20fe67d203d127e84fbb8013855f5"},
- {file = "ruff-0.7.3-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7f3eff9961b5d2644bcf1616c606e93baa2d6b349e8aa8b035f654df252c8c67"},
- {file = "ruff-0.7.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8963cab06d130c4df2fd52c84e9f10d297826d2e8169ae0c798b6221be1d1d2"},
- {file = "ruff-0.7.3-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:61b46049d6edc0e4317fb14b33bd693245281a3007288b68a3f5b74a22a0746d"},
- {file = "ruff-0.7.3-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:10ebce7696afe4644e8c1a23b3cf8c0f2193a310c18387c06e583ae9ef284de2"},
- {file = "ruff-0.7.3-py3-none-musllinux_1_2_i686.whl", hash = "sha256:3f36d56326b3aef8eeee150b700e519880d1aab92f471eefdef656fd57492aa2"},
- {file = "ruff-0.7.3-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:5d024301109a0007b78d57ab0ba190087b43dce852e552734ebf0b0b85e4fb16"},
- {file = "ruff-0.7.3-py3-none-win32.whl", hash = "sha256:4ba81a5f0c5478aa61674c5a2194de8b02652f17addf8dfc40c8937e6e7d79fc"},
- {file = "ruff-0.7.3-py3-none-win_amd64.whl", hash = "sha256:588a9ff2fecf01025ed065fe28809cd5a53b43505f48b69a1ac7707b1b7e4088"},
- {file = "ruff-0.7.3-py3-none-win_arm64.whl", hash = "sha256:1713e2c5545863cdbfe2cbce21f69ffaf37b813bfd1fb3b90dc9a6f1963f5a8c"},
- {file = "ruff-0.7.3.tar.gz", hash = "sha256:e1d1ba2e40b6e71a61b063354d04be669ab0d39c352461f3d789cac68b54a313"},
+ {file = "ruff-0.7.4-py3-none-linux_armv6l.whl", hash = "sha256:a4919925e7684a3f18e18243cd6bea7cfb8e968a6eaa8437971f681b7ec51478"},
+ {file = "ruff-0.7.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:cfb365c135b830778dda8c04fb7d4280ed0b984e1aec27f574445231e20d6c63"},
+ {file = "ruff-0.7.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:63a569b36bc66fbadec5beaa539dd81e0527cb258b94e29e0531ce41bacc1f20"},
+ {file = "ruff-0.7.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d06218747d361d06fd2fdac734e7fa92df36df93035db3dc2ad7aa9852cb109"},
+ {file = "ruff-0.7.4-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e0cea28d0944f74ebc33e9f934238f15c758841f9f5edd180b5315c203293452"},
+ {file = "ruff-0.7.4-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:80094ecd4793c68b2571b128f91754d60f692d64bc0d7272ec9197fdd09bf9ea"},
+ {file = "ruff-0.7.4-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:997512325c6620d1c4c2b15db49ef59543ef9cd0f4aa8065ec2ae5103cedc7e7"},
+ {file = "ruff-0.7.4-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:00b4cf3a6b5fad6d1a66e7574d78956bbd09abfd6c8a997798f01f5da3d46a05"},
+ {file = "ruff-0.7.4-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7dbdc7d8274e1422722933d1edddfdc65b4336abf0b16dfcb9dedd6e6a517d06"},
+ {file = "ruff-0.7.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0e92dfb5f00eaedb1501b2f906ccabfd67b2355bdf117fea9719fc99ac2145bc"},
+ {file = "ruff-0.7.4-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:3bd726099f277d735dc38900b6a8d6cf070f80828877941983a57bca1cd92172"},
+ {file = "ruff-0.7.4-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:2e32829c429dd081ee5ba39aef436603e5b22335c3d3fff013cd585806a6486a"},
+ {file = "ruff-0.7.4-py3-none-musllinux_1_2_i686.whl", hash = "sha256:662a63b4971807623f6f90c1fb664613f67cc182dc4d991471c23c541fee62dd"},
+ {file = "ruff-0.7.4-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:876f5e09eaae3eb76814c1d3b68879891d6fde4824c015d48e7a7da4cf066a3a"},
+ {file = "ruff-0.7.4-py3-none-win32.whl", hash = "sha256:75c53f54904be42dd52a548728a5b572344b50d9b2873d13a3f8c5e3b91f5cac"},
+ {file = "ruff-0.7.4-py3-none-win_amd64.whl", hash = "sha256:745775c7b39f914238ed1f1b0bebed0b9155a17cd8bc0b08d3c87e4703b990d6"},
+ {file = "ruff-0.7.4-py3-none-win_arm64.whl", hash = "sha256:11bff065102c3ae9d3ea4dc9ecdfe5a5171349cdd0787c1fc64761212fc9cf1f"},
+ {file = "ruff-0.7.4.tar.gz", hash = "sha256:cd12e35031f5af6b9b93715d8c4f40360070b2041f81273d0527683d5708fce2"},
]
[[package]]
@@ -1665,4 +1665,4 @@ standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)",
[metadata]
lock-version = "2.0"
python-versions = ">=3.12,<4"
-content-hash = "e0e3810315978e5ccedb6408e42c0fbca43a0572da106c7d615b202b1c99b1d8"
+content-hash = "9f1660cda4c66099a00302ae3c6400ce0d302f5cd8dc485b0111f5551823c252"
diff --git a/pyproject.toml b/pyproject.toml
index 7d056a0..4c55849 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,7 +27,7 @@ pytest-alembic = "^0.11.1"
[tool.poetry.group.linters.dependencies]
-ruff = "0.7.3"
+ruff = "0.7.4"
black = "24.8.0"
[tool.pytest.ini_options]