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 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)