Skip to content

Commit d400bdb

Browse files
chore: Bump the development-dependencies group with 2 updates (#520)
Bumps the development-dependencies group with 2 updates: [ruff](https://github.com/astral-sh/ruff) and [types-simplejson](https://github.com/python/typeshed). Updates `ruff` from 0.9.10 to 0.11.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>0.11.2</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>[syntax-errors] Fix false-positive syntax errors emitted for annotations on variadic parameters before Python 3.11 (<a href="https://redirect.github.com/astral-sh/ruff/pull/16878">#16878</a>)</li> </ul> <h2>Contributors</h2> <ul> <li><a href="https://github.com/AlexWaygood"><code>@​AlexWaygood</code></a></li> <li><a href="https://github.com/MatthewMckee4"><code>@​MatthewMckee4</code></a></li> <li><a href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a></li> <li><a href="https://github.com/junhsonjb"><code>@​junhsonjb</code></a></li> <li><a href="https://github.com/mtshiba"><code>@​mtshiba</code></a></li> <li><a href="https://github.com/ntBre"><code>@​ntBre</code></a></li> </ul> <h2>Install ruff 0.11.2</h2> <h3>Install prebuilt binaries via shell script</h3> <pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-installer.sh | sh </code></pre> <h3>Install prebuilt binaries via powershell script</h3> <pre lang="sh"><code>powershell -ExecutionPolicy ByPass -c &quot;irm https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-installer.ps1 | iex&quot; </code></pre> <h2>Download ruff 0.11.2</h2> <table> <thead> <tr> <th>File</th> <th>Platform</th> <th>Checksum</th> </tr> </thead> <tbody> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-apple-darwin.tar.gz">ruff-aarch64-apple-darwin.tar.gz</a></td> <td>Apple Silicon macOS</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-apple-darwin.tar.gz">ruff-x86_64-apple-darwin.tar.gz</a></td> <td>Intel macOS</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-apple-darwin.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-pc-windows-msvc.zip">ruff-aarch64-pc-windows-msvc.zip</a></td> <td>ARM64 Windows</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-pc-windows-msvc.zip.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-i686-pc-windows-msvc.zip">ruff-i686-pc-windows-msvc.zip</a></td> <td>x86 Windows</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-i686-pc-windows-msvc.zip.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-pc-windows-msvc.zip">ruff-x86_64-pc-windows-msvc.zip</a></td> <td>x64 Windows</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-pc-windows-msvc.zip.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-unknown-linux-gnu.tar.gz">ruff-aarch64-unknown-linux-gnu.tar.gz</a></td> <td>ARM64 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-i686-unknown-linux-gnu.tar.gz">ruff-i686-unknown-linux-gnu.tar.gz</a></td> <td>x86 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-i686-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-powerpc64-unknown-linux-gnu.tar.gz">ruff-powerpc64-unknown-linux-gnu.tar.gz</a></td> <td>PPC64 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-powerpc64-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-powerpc64le-unknown-linux-gnu.tar.gz">ruff-powerpc64le-unknown-linux-gnu.tar.gz</a></td> <td>PPC64LE Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-powerpc64le-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-s390x-unknown-linux-gnu.tar.gz">ruff-s390x-unknown-linux-gnu.tar.gz</a></td> <td>S390x Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-s390x-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-unknown-linux-gnu.tar.gz">ruff-x86_64-unknown-linux-gnu.tar.gz</a></td> <td>x64 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-unknown-linux-gnu.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-armv7-unknown-linux-gnueabihf.tar.gz">ruff-armv7-unknown-linux-gnueabihf.tar.gz</a></td> <td>ARMv7 Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-armv7-unknown-linux-gnueabihf.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-unknown-linux-musl.tar.gz">ruff-aarch64-unknown-linux-musl.tar.gz</a></td> <td>ARM64 MUSL Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-aarch64-unknown-linux-musl.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-i686-unknown-linux-musl.tar.gz">ruff-i686-unknown-linux-musl.tar.gz</a></td> <td>x86 MUSL Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-i686-unknown-linux-musl.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-unknown-linux-musl.tar.gz">ruff-x86_64-unknown-linux-musl.tar.gz</a></td> <td>x64 MUSL Linux</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-x86_64-unknown-linux-musl.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-arm-unknown-linux-musleabihf.tar.gz">ruff-arm-unknown-linux-musleabihf.tar.gz</a></td> <td>ARMv6 MUSL Linux (Hardfloat)</td> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.11.2/ruff-arm-unknown-linux-musleabihf.tar.gz.sha256">checksum</a></td> </tr> </tbody> </table> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's changelog</a>.</em></p> <blockquote> <h2>0.11.2</h2> <h3>Preview features</h3> <ul> <li>[syntax-errors] Fix false-positive syntax errors emitted for annotations on variadic parameters before Python 3.11 (<a href="https://redirect.github.com/astral-sh/ruff/pull/16878">#16878</a>)</li> </ul> <h2>0.11.1</h2> <h3>Preview features</h3> <ul> <li>[<code>airflow</code>] Add <code>chain</code>, <code>chain_linear</code> and <code>cross_downstream</code> for <code>AIR302</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/16647">#16647</a>)</li> <li>[syntax-errors] Improve error message and range for pre-PEP-614 decorator syntax errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/16581">#16581</a>)</li> <li>[syntax-errors] PEP 701 f-strings before Python 3.12 (<a href="https://redirect.github.com/astral-sh/ruff/pull/16543">#16543</a>)</li> <li>[syntax-errors] Parenthesized context managers before Python 3.9 (<a href="https://redirect.github.com/astral-sh/ruff/pull/16523">#16523</a>)</li> <li>[syntax-errors] Star annotations before Python 3.11 (<a href="https://redirect.github.com/astral-sh/ruff/pull/16545">#16545</a>)</li> <li>[syntax-errors] Star expression in index before Python 3.11 (<a href="https://redirect.github.com/astral-sh/ruff/pull/16544">#16544</a>)</li> <li>[syntax-errors] Unparenthesized assignment expressions in sets and indexes (<a href="https://redirect.github.com/astral-sh/ruff/pull/16404">#16404</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Server: Allow <code>FixAll</code> action in presence of version-specific syntax errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/16848">#16848</a>)</li> <li>[<code>flake8-bandit</code>] Allow raw strings in <code>suspicious-mark-safe-usage</code> (<code>S308</code>) <a href="https://redirect.github.com/astral-sh/ruff/issues/16702">#16702</a> (<a href="https://redirect.github.com/astral-sh/ruff/pull/16770">#16770</a>)</li> <li>[<code>refurb</code>] Avoid panicking <code>unwrap</code> in <code>verbose-decimal-constructor</code> (<code>FURB157</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/16777">#16777</a>)</li> <li>[<code>refurb</code>] Fix starred expressions fix (<code>FURB161</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/16550">#16550</a>)</li> <li>Fix <code>--statistics</code> reporting for unsafe fixes (<a href="https://redirect.github.com/astral-sh/ruff/pull/16756">#16756</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-executables</code>] Allow <code>uv run</code> in shebang line for <code>shebang-missing-python</code> (<code>EXE003</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/16849">#16849</a>,<a href="https://redirect.github.com/astral-sh/ruff/pull/16855">#16855</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add <code>--exit-non-zero-on-format</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/16009">#16009</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Update Ruff tutorial to avoid non-existent fix in <code>__init__.py</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/16818">#16818</a>)</li> <li>[<code>flake8-gettext</code>] Swap <code>format-</code> and <code>printf-in-get-text-func-call</code> examples (<code>INT002</code>, <code>INT003</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/16769">#16769</a>)</li> </ul> <h2>0.11.0</h2> <p>This is a follow-up to release 0.10.0. Because of a mistake in the release process, the <code>requires-python</code> inference changes were not included in that release. Ruff 0.11.0 now includes this change as well as the stabilization of the preview behavior for <code>PGH004</code>.</p> <h3>Breaking changes</h3> <ul> <li> <p><strong>Changes to how the Python version is inferred when a <code>target-version</code> is not specified</strong> (<a href="https://redirect.github.com/astral-sh/ruff/pull/16319">#16319</a>)</p> <p>In previous versions of Ruff, you could specify your Python version with:</p> <ul> <li>The <code>target-version</code> option in a <code>ruff.toml</code> file or the <code>[tool.ruff]</code> section of a pyproject.toml file.</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/4773878ee70ea9b700d3d57c3ca4a917c7d8ea38"><code>4773878</code></a> Bump 0.11.2 (<a href="https://redirect.github.com/astral-sh/ruff/issues/16896">#16896</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2a4d8351325d97e3a2dd4a0fcc489cce15561dc1"><code>2a4d835</code></a> Use the common <code>OperatorPrecedence</code> for the parser (<a href="https://redirect.github.com/astral-sh/ruff/issues/16747">#16747</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/04a875637954c8f88eb39a2fdf815be899bec1bb"><code>04a8756</code></a> [red-knot] Check subtype relation between callable types (<a href="https://redirect.github.com/astral-sh/ruff/issues/16804">#16804</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/193c38199e10b57f7b3ebeefca390ce50401e697"><code>193c381</code></a> [red-knot] Check whether two callable types are equivalent (<a href="https://redirect.github.com/astral-sh/ruff/issues/16698">#16698</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/63e78b41cdcb6e5469998fe4fba97260b3a3e95c"><code>63e78b4</code></a> [red-knot] Ban most <code>Type::Instance</code> types in type expressions (<a href="https://redirect.github.com/astral-sh/ruff/issues/16872">#16872</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/296d67a496f4261fe5e0734b81e0f8b91a1de312"><code>296d67a</code></a> Special-case value-expression inference of special form subscriptions (<a href="https://redirect.github.com/astral-sh/ruff/issues/16877">#16877</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/42cbce538b57961231b20fca524bbc16e857f5c3"><code>42cbce5</code></a> [syntax-errors] Fix star annotation before Python 3.11 (<a href="https://redirect.github.com/astral-sh/ruff/issues/16878">#16878</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/67602512b6cc90dad377b8b8709b981a6184fe37"><code>6760251</code></a> Recognize <code>SyntaxError:</code> as an error code for ecosystem checks (<a href="https://redirect.github.com/astral-sh/ruff/issues/16879">#16879</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/23382f5f8c7b4e356368cdeb1049b8c1910baff3"><code>23382f5</code></a> [red-knot] add test cases result in false positive errors (<a href="https://redirect.github.com/astral-sh/ruff/issues/16856">#16856</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c1971fdde24b37e64baa70386d933715aeec13c6"><code>c1971fd</code></a> Bump 0.11.1 (<a href="https://redirect.github.com/astral-sh/ruff/issues/16871">#16871</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.9.10...0.11.2">compare view</a></li> </ul> </details> <br /> Updates `types-simplejson` from 3.20.0.20250218 to 3.20.0.20250318 <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li> </ul> </details> <br /> 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) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
1 parent eee4574 commit d400bdb

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

poetry.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

target_postgres/connector.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def prepare_table( # type: ignore[override] # noqa: PLR0913
179179
] # So we don't mess up the casing of the Table reference
180180

181181
columns = self.get_table_columns(
182-
schema_name=cast(str, schema_name),
182+
schema_name=cast("str", schema_name),
183183
table_name=table_name,
184184
connection=connection,
185185
)
@@ -509,13 +509,13 @@ def prepare_column(
509509
table_name=table_name,
510510
column_name=column_name,
511511
sql_type=sql_type,
512-
schema_name=cast(str, schema_name),
512+
schema_name=cast("str", schema_name),
513513
connection=connection,
514514
)
515515
return
516516

517517
self._adapt_column_type(
518-
schema_name=cast(str, schema_name),
518+
schema_name=cast("str", schema_name),
519519
table_name=table_name,
520520
column_name=column_name,
521521
sql_type=sql_type,
@@ -612,7 +612,7 @@ def _adapt_column_type( # type: ignore[override] # noqa: PLR0913
612612
"""
613613
current_type: sa.types.TypeEngine
614614
if column_object is not None:
615-
current_type = t.cast(sa.types.TypeEngine, column_object.type)
615+
current_type = t.cast("sa.types.TypeEngine", column_object.type)
616616
else:
617617
current_type = self._get_column_type(
618618
schema_name=schema_name,
@@ -699,7 +699,7 @@ def get_sqlalchemy_url(self, config: dict) -> str:
699699
config: The configuration for the connector.
700700
"""
701701
if config.get("sqlalchemy_url"):
702-
return cast(str, config["sqlalchemy_url"])
702+
return cast("str", config["sqlalchemy_url"])
703703

704704
sqlalchemy_url = URL.create(
705705
drivername=config["dialect+driver"],
@@ -710,7 +710,7 @@ def get_sqlalchemy_url(self, config: dict) -> str:
710710
database=config["database"],
711711
query=self.get_sqlalchemy_query(config),
712712
)
713-
return cast(str, sqlalchemy_url)
713+
return cast("str", sqlalchemy_url)
714714

715715
def get_sqlalchemy_query(self, config: dict) -> dict:
716716
"""Get query values to be used for sqlalchemy URL creation.
@@ -857,7 +857,7 @@ def _get_column_type( # type: ignore[override]
857857
)
858858
raise KeyError(msg) from ex
859859

860-
return t.cast(sa.types.TypeEngine, column.type)
860+
return t.cast("sa.types.TypeEngine", column.type)
861861

862862
def get_table_columns( # type: ignore[override]
863863
self,

target_postgres/sinks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def connector(self) -> PostgresConnector:
4444
Returns:
4545
The connector object.
4646
"""
47-
return t.cast(PostgresConnector, self._connector)
47+
return t.cast("PostgresConnector", self._connector)
4848

4949
def setup(self) -> None:
5050
"""Set up Sink.
@@ -255,7 +255,7 @@ def bulk_insert_records( # type: ignore[override]
255255
self._do_copy(connection, copy_statement, columns, data)
256256
else:
257257
insert: str = t.cast(
258-
str,
258+
"str",
259259
self.generate_insert_statement(
260260
table.name,
261261
columns,

0 commit comments

Comments
 (0)