From 19499990e4c564fd3115038c4a29ed6a7c0d9a04 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 04:46:37 +0000 Subject: [PATCH] chore(deps): update dependency ruff to ^0.6.0 (#2387) * chore(deps): update dependency ruff to ^0.6.0 * fix lint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Alex Ebenrode --- poetry.lock | 40 +++++++++---------- pyproject.toml | 2 +- .../tests_marketing_integrations.py | 6 +-- .../tests_write_success_admin_log.py | 2 +- .../orders/services/tests_order_refunder.py | 10 ++--- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/poetry.lock b/poetry.lock index 48c2dbf48b4..01976dfb5d2 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2894,29 +2894,29 @@ files = [ [[package]] name = "ruff" -version = "0.5.7" +version = "0.6.8" description = "An extremely fast Python linter and code formatter, written in Rust." optional = false python-versions = ">=3.7" files = [ - {file = "ruff-0.5.7-py3-none-linux_armv6l.whl", hash = "sha256:548992d342fc404ee2e15a242cdbea4f8e39a52f2e7752d0e4cbe88d2d2f416a"}, - {file = "ruff-0.5.7-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:00cc8872331055ee017c4f1071a8a31ca0809ccc0657da1d154a1d2abac5c0be"}, - {file = "ruff-0.5.7-py3-none-macosx_11_0_arm64.whl", hash = "sha256:eaf3d86a1fdac1aec8a3417a63587d93f906c678bb9ed0b796da7b59c1114a1e"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a01c34400097b06cf8a6e61b35d6d456d5bd1ae6961542de18ec81eaf33b4cb8"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fcc8054f1a717e2213500edaddcf1dbb0abad40d98e1bd9d0ad364f75c763eea"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7f70284e73f36558ef51602254451e50dd6cc479f8b6f8413a95fcb5db4a55fc"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:a78ad870ae3c460394fc95437d43deb5c04b5c29297815a2a1de028903f19692"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9ccd078c66a8e419475174bfe60a69adb36ce04f8d4e91b006f1329d5cd44bcf"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7e31c9bad4ebf8fdb77b59cae75814440731060a09a0e0077d559a556453acbb"}, - {file = "ruff-0.5.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d796327eed8e168164346b769dd9a27a70e0298d667b4ecee6877ce8095ec8e"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:4a09ea2c3f7778cc635e7f6edf57d566a8ee8f485f3c4454db7771efb692c499"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:a36d8dcf55b3a3bc353270d544fb170d75d2dff41eba5df57b4e0b67a95bb64e"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_i686.whl", hash = "sha256:9369c218f789eefbd1b8d82a8cf25017b523ac47d96b2f531eba73770971c9e5"}, - {file = "ruff-0.5.7-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:b88ca3db7eb377eb24fb7c82840546fb7acef75af4a74bd36e9ceb37a890257e"}, - {file = "ruff-0.5.7-py3-none-win32.whl", hash = "sha256:33d61fc0e902198a3e55719f4be6b375b28f860b09c281e4bdbf783c0566576a"}, - {file = "ruff-0.5.7-py3-none-win_amd64.whl", hash = "sha256:083bbcbe6fadb93cd86709037acc510f86eed5a314203079df174c40bbbca6b3"}, - {file = "ruff-0.5.7-py3-none-win_arm64.whl", hash = "sha256:2dca26154ff9571995107221d0aeaad0e75a77b5a682d6236cf89a58c70b76f4"}, - {file = "ruff-0.5.7.tar.gz", hash = "sha256:8dfc0a458797f5d9fb622dd0efc52d796f23f0a1493a9527f4e49a550ae9a7e5"}, + {file = "ruff-0.6.8-py3-none-linux_armv6l.whl", hash = "sha256:77944bca110ff0a43b768f05a529fecd0706aac7bcce36d7f1eeb4cbfca5f0f2"}, + {file = "ruff-0.6.8-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:27b87e1801e786cd6ede4ada3faa5e254ce774de835e6723fd94551464c56b8c"}, + {file = "ruff-0.6.8-py3-none-macosx_11_0_arm64.whl", hash = "sha256:cd48f945da2a6334f1793d7f701725a76ba93bf3d73c36f6b21fb04d5338dcf5"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:677e03c00f37c66cea033274295a983c7c546edea5043d0c798833adf4cf4c6f"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9f1476236b3eacfacfc0f66aa9e6cd39f2a624cb73ea99189556015f27c0bdeb"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f5a2f17c7d32991169195d52a04c95b256378bbf0de8cb98478351eb70d526f"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:5fd0d4b7b1457c49e435ee1e437900ced9b35cb8dc5178921dfb7d98d65a08d0"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f8034b19b993e9601f2ddf2c517451e17a6ab5cdb1c13fdff50c1442a7171d87"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6cfb227b932ba8ef6e56c9f875d987973cd5e35bc5d05f5abf045af78ad8e098"}, + {file = "ruff-0.6.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ef0411eccfc3909269fed47c61ffebdcb84a04504bafa6b6df9b85c27e813b0"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:007dee844738c3d2e6c24ab5bc7d43c99ba3e1943bd2d95d598582e9c1b27750"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:ce60058d3cdd8490e5e5471ef086b3f1e90ab872b548814e35930e21d848c9ce"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_i686.whl", hash = "sha256:1085c455d1b3fdb8021ad534379c60353b81ba079712bce7a900e834859182fa"}, + {file = "ruff-0.6.8-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:70edf6a93b19481affd287d696d9e311388d808671bc209fb8907b46a8c3af44"}, + {file = "ruff-0.6.8-py3-none-win32.whl", hash = "sha256:792213f7be25316f9b46b854df80a77e0da87ec66691e8f012f887b4a671ab5a"}, + {file = "ruff-0.6.8-py3-none-win_amd64.whl", hash = "sha256:ec0517dc0f37cad14a5319ba7bba6e7e339d03fbf967a6d69b0907d61be7a263"}, + {file = "ruff-0.6.8-py3-none-win_arm64.whl", hash = "sha256:8d3bb2e3fbb9875172119021a13eed38849e762499e3cfde9588e4b4d70968dc"}, + {file = "ruff-0.6.8.tar.gz", hash = "sha256:a5bf44b1aa0adaf6d9d20f86162b34f7c593bfedabc51239953e446aefc8ce18"}, ] [[package]] @@ -3533,4 +3533,4 @@ brotli = ["brotli"] [metadata] lock-version = "2.0" python-versions = "~3.11" -content-hash = "bd85dbd89a25de72647040e6d96c844ece15f8281dfe89ae9d08ccd5d1f7f108" +content-hash = "e7f595927be672b9ff654b746cca736c4e74e533b09f246e6baaae938c03d020" diff --git a/pyproject.toml b/pyproject.toml index aaf1ae92fe8..4a0fac8bb80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ pytest-xdist = "^3.3.1" requests-mock = "^1.11.0" respx = "^0.21.0" rope = "^1.10.0" -ruff = "^0.5.0" +ruff = "^0.6.0" toml-sort = "^0.23.1" types-babel = "^2.11.0.15" types-bleach = "^6.0.0.4" diff --git a/src/apps/orders/tests/orders/order_shipping/tests_marketing_integrations.py b/src/apps/orders/tests/orders/order_shipping/tests_marketing_integrations.py index 59f4832ce28..b2dd67f618e 100644 --- a/src/apps/orders/tests/orders/order_shipping/tests_marketing_integrations.py +++ b/src/apps/orders/tests/orders/order_shipping/tests_marketing_integrations.py @@ -42,7 +42,7 @@ def test_amocrm_is_updated(order, update_amocrm_order, update_amocrm_user): update_amocrm_user.assert_called_once() -@pytest.mark.user_tags_rebuild() +@pytest.mark.user_tags_rebuild def test_tags_are_rebuilt(order): assert "any-purchase" not in order.user.tags @@ -52,14 +52,14 @@ def test_tags_are_rebuilt(order): assert "any-purchase" in order.user.tags -@pytest.mark.dashamail() +@pytest.mark.dashamail def test_dashamail_is_updated(order, update_dashamail): order.set_paid() update_dashamail.assert_called_once() -@pytest.mark.dashamail() +@pytest.mark.dashamail def test_dashamail_directm_is_updated(order, update_dashamail_directcrm): order.set_paid() diff --git a/src/apps/orders/tests/orders/order_shipping/tests_write_success_admin_log.py b/src/apps/orders/tests/orders/order_shipping/tests_write_success_admin_log.py index 8b607177af8..e105969eda8 100644 --- a/src/apps/orders/tests/orders/order_shipping/tests_write_success_admin_log.py +++ b/src/apps/orders/tests/orders/order_shipping/tests_write_success_admin_log.py @@ -14,7 +14,7 @@ def order(factory): return factory.order() -@pytest.mark.freeze_time() +@pytest.mark.freeze_time @pytest.mark.usefixtures("_set_current_user") def test_paid_log_created(order, user): order.set_paid() diff --git a/src/apps/orders/tests/orders/services/tests_order_refunder.py b/src/apps/orders/tests/orders/services/tests_order_refunder.py index 01e28fe3b66..9669f5da0e0 100644 --- a/src/apps/orders/tests/orders/services/tests_order_refunder.py +++ b/src/apps/orders/tests/orders/services/tests_order_refunder.py @@ -276,7 +276,7 @@ def test_update_user_tags(paid_order, mock_rebuild_tags, refund): mock_rebuild_tags.assert_called_once_with(student_id=paid_order.user.id) -@pytest.mark.dashamail() +@pytest.mark.dashamail def test_update_dashamail(paid_order, refund, mocker): update_subscription = mocker.patch("apps.dashamail.tasks.DashamailSubscriber.subscribe") @@ -292,8 +292,8 @@ def test_fail_if_bank_is_set_but_unknown(paid_order, refund): refund(paid_order, paid_order.price) -@pytest.mark.auditlog() -@pytest.mark.freeze_time() +@pytest.mark.auditlog +@pytest.mark.freeze_time def test_success_admin_log_created(paid_order, refund, user): refund(paid_order, paid_order.price) @@ -369,8 +369,8 @@ def test_partial_refund_order_unshipped_when_total_refund_eq_price(paid_tinkoff_ spy_unshipper.assert_called_once() -@pytest.mark.auditlog() -@pytest.mark.freeze_time() +@pytest.mark.auditlog +@pytest.mark.freeze_time @pytest.mark.usefixtures("mock_tinkoff_refund") def test_partial_refund_success_admin_log_created(paid_tinkoff_order, refund, user): refund(paid_tinkoff_order, 500)