From 8277369b2f7d9fa42bc42b34c0c8ed65de4568c5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 17 Mar 2025 17:27:28 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/PyCQA/isort: 5.13.2 → 6.0.1](https://github.com/PyCQA/isort/compare/5.13.2...6.0.1) - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/tox-dev/pyproject-fmt: v2.5.0 → v2.5.1](https://github.com/tox-dev/pyproject-fmt/compare/v2.5.0...v2.5.1) - [github.com/astral-sh/ruff-pre-commit: v0.9.3 → v0.11.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.9.3...v0.11.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e8c04fa..e0d0756d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: mixed-line-ending - repo: https://github.com/PyCQA/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort files: >- @@ -24,7 +24,7 @@ repos: ) - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black files: >- @@ -36,12 +36,12 @@ repos: ) - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.5.0 + rev: v2.5.1 hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.9.3 + rev: v0.11.0 hooks: - id: ruff From 17bbb17b79aef37b809412c3775bb5c1e35976d0 Mon Sep 17 00:00:00 2001 From: Alexander Piskun Date: Tue, 18 Mar 2025 16:49:12 +0300 Subject: [PATCH 2/2] fixed RUF046 Signed-off-by: Alexander Piskun --- tests/actual_tests/files_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/actual_tests/files_test.py b/tests/actual_tests/files_test.py index e4c2c4ca..7e6d89ca 100644 --- a/tests/actual_tests/files_test.py +++ b/tests/actual_tests/files_test.py @@ -224,7 +224,7 @@ async def test_file_download2file_async(anc_any, rand_bytes): def test_file_download2stream_invalid_type(nc_any): for test_type in ( b"13", - int(55), + 55, ): with pytest.raises(TypeError): nc_any.files.download2stream("xxx", test_type) @@ -234,7 +234,7 @@ def test_file_download2stream_invalid_type(nc_any): async def test_file_download2stream_invalid_type_async(anc_any): for test_type in ( b"13", - int(55), + 55, ): with pytest.raises(TypeError): await anc_any.files.download2stream("xxx", test_type) @@ -243,7 +243,7 @@ async def test_file_download2stream_invalid_type_async(anc_any): def test_file_upload_stream_invalid_type(nc_any): for test_type in ( b"13", - int(55), + 55, ): with pytest.raises(TypeError): nc_any.files.upload_stream("xxx", test_type) @@ -253,7 +253,7 @@ def test_file_upload_stream_invalid_type(nc_any): async def test_file_upload_stream_invalid_type_async(anc_any): for test_type in ( b"13", - int(55), + 55, ): with pytest.raises(TypeError): await anc_any.files.upload_stream("xxx", test_type)