Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Start linting dependencies (#14668)
Patryk Zawadzki44643e0f22cb
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex c2a2a9ed6d..5ab15de13e 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -23,6 +23,11 @@ repos:language: systemexclude: tests/+ - repo: https://github.com/fpgmaas/deptry.git+ rev: "0.12.0"+ hooks:+ - id: deptry+- repo: https://github.com/returntocorp/semgreprev: v1.46.0hooks:diff --git a/poetry.lock b/poetry.lockindex d97f8dd673..8fb4941344 100644--- a/poetry.lock+++ b/poetry.lock@@ -313,17 +313,17 @@ files = [[[package]]name = "boto3"-version = "1.28.78"+version = "1.28.79"description = "The AWS SDK for Python"optional = falsepython-versions = ">= 3.7"files = [- {file = "boto3-1.28.78-py3-none-any.whl", hash = "sha256:ff8df4bb5aeb69acc64959a74b31042bfc52d64ca77dbe845a72c8062c48d179"},- {file = "boto3-1.28.78.tar.gz", hash = "sha256:aa970b1571321846543a6e615848352fe7621f1cb96b4454e919421924af95f7"},+ {file = "boto3-1.28.79-py3-none-any.whl", hash = "sha256:02ce7dcad2d3b054cd99e7ca6df7a708e016a31b1c98b46d8df3b3891070c121"},+ {file = "boto3-1.28.79.tar.gz", hash = "sha256:b8acb57a124434284d6ab69c61d32d70e84e13e2c27c33b4ad3c32f15ad407d3"},][package.dependencies]-botocore = ">=1.31.78,<1.32.0"+botocore = ">=1.31.79,<1.32.0"jmespath = ">=0.7.1,<2.0.0"s3transfer = ">=0.7.0,<0.8.0"@@ -332,13 +332,13 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"][[package]]name = "botocore"-version = "1.31.78"+version = "1.31.79"description = "Low-level, data-driven core of boto 3."optional = falsepython-versions = ">= 3.7"files = [- {file = "botocore-1.31.78-py3-none-any.whl", hash = "sha256:a9ca8deeb3f47a10a25637859fee8d81cac2db37ace819d24471279e44879547"},- {file = "botocore-1.31.78.tar.gz", hash = "sha256:320c70bc412157813c2cf60217a592b4b345f8e97e4bf3b1ce49b6be69ed8965"},+ {file = "botocore-1.31.79-py3-none-any.whl", hash = "sha256:6f1fc49e9e12f9772b4fef577837670bc84d772a7c946b4d08fe2890e34a4305"},+ {file = "botocore-1.31.79.tar.gz", hash = "sha256:07ecb93833475dde68e5c0e02a7ccf8ca22caf68cdc892651c300529894133e1"},][package.dependencies]@@ -658,6 +658,17 @@ files = [{file = "cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560"},]+[[package]]+name = "chardet"+version = "5.2.0"+description = "Universal encoding detector for Python 3"+optional = false+python-versions = ">=3.7"+files = [+ {file = "chardet-5.2.0-py3-none-any.whl", hash = "sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970"},+ {file = "chardet-5.2.0.tar.gz", hash = "sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7"},+]+[[package]]name = "charset-normalizer"version = "3.3.2"@@ -1005,6 +1016,24 @@ files = [{file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"},]+[[package]]+name = "deptry"+version = "0.12.0"+description = "A command line utility to check for unused, missing and transitive dependencies in a Python project."+optional = false+python-versions = ">=3.8,<4.0"+files = [+ {file = "deptry-0.12.0-py3-none-any.whl", hash = "sha256:69c801a6ae1b39c7b8e0daf40dbe8b75f1f161277d206dd8f921f32cd22dad91"},+ {file = "deptry-0.12.0.tar.gz", hash = "sha256:ac3cd32d149c92a9af12f63cd9486ddd1760f0277ed0cf306c6ef0388f57ff0a"},+]++[package.dependencies]+chardet = ">=4.0.0"+click = ">=8.0.0,<9.0.0"+colorama = {version = ">=0.4.6", markers = "sys_platform == \"win32\""}+pathspec = ">=0.9.0"+tomli = {version = ">=2.0.1,<3.0.0", markers = "python_version < \"3.11\""}+[[package]]name = "distlib"version = "0.3.7"@@ -2319,13 +2348,13 @@ referencing = ">=0.28.0"[[package]]name = "kombu"-version = "5.3.2"+version = "5.3.3"description = "Messaging library for Python."optional = falsepython-versions = ">=3.8"files = [- {file = "kombu-5.3.2-py3-none-any.whl", hash = "sha256:b753c9cfc9b1e976e637a7cbc1a65d446a22e45546cd996ea28f932082b7dc9e"},- {file = "kombu-5.3.2.tar.gz", hash = "sha256:0ba213f630a2cb2772728aef56ac6883dc3a2f13435e10048f6e97d48506dbbd"},+ {file = "kombu-5.3.3-py3-none-any.whl", hash = "sha256:6cd5c5d5ef77538434b8f81f3e265c414269418645dbb47dbf130a8a05c3e357"},+ {file = "kombu-5.3.3.tar.gz", hash = "sha256:1491df826cfc5178c80f3e89dd6dfba68e484ef334db81070eb5cb8094b31167"},][package.dependencies]@@ -2336,14 +2365,14 @@ vine = "*"[package.extras]azureservicebus = ["azure-servicebus (>=7.10.0)"]azurestoragequeues = ["azure-identity (>=1.12.0)", "azure-storage-queue (>=12.6.0)"]-confluentkafka = ["confluent-kafka (==2.1.1)"]+confluentkafka = ["confluent-kafka (>=2.2.0)"]consul = ["python-consul2"]librabbitmq = ["librabbitmq (>=2.0.0)"]mongodb = ["pymongo (>=4.1.1)"]msgpack = ["msgpack"]pyro = ["pyro4"]qpid = ["qpid-python (>=0.26)", "qpid-tools (>=0.26)"]-redis = ["redis (>=4.5.2)"]+redis = ["redis (>=4.5.2,!=4.5.5,<6.0.0)"]slmq = ["softlayer-messaging (>=1.0.3)"]sqlalchemy = ["sqlalchemy (>=1.4.48,<2.1)"]sqs = ["boto3 (>=1.26.143)", "pycurl (>=7.43.0.5)", "urllib3 (>=1.26.16)"]@@ -2898,6 +2927,17 @@ files = [{file = "packaging-23.2.tar.gz", hash = "sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5"},]+[[package]]+name = "pathspec"+version = "0.11.2"+description = "Utility library for gitignore style pattern matching of file paths."+optional = false+python-versions = ">=3.7"+files = [+ {file = "pathspec-0.11.2-py3-none-any.whl", hash = "sha256:1d6ed233af05e679efb96b1851550ea95bbb64b7c490b0f5aa52996c11e92a20"},+ {file = "pathspec-0.11.2.tar.gz", hash = "sha256:e0d8d0ac2f12da61956eb2306b69f9469b42f4deb0f3cb6ed47b9cce9996ced3"},+]+[[package]]name = "peewee"version = "3.17.0"@@ -3209,8 +3249,6 @@ files = [{file = "psycopg2-2.9.9-cp310-cp310-win_amd64.whl", hash = "sha256:426f9f29bde126913a20a96ff8ce7d73fd8a216cfb323b1f04da402d452853c3"},{file = "psycopg2-2.9.9-cp311-cp311-win32.whl", hash = "sha256:ade01303ccf7ae12c356a5e10911c9e1c51136003a9a1d92f7aa9d010fb98372"},{file = "psycopg2-2.9.9-cp311-cp311-win_amd64.whl", hash = "sha256:121081ea2e76729acfb0673ff33755e8703d45e926e416cb59bae3a86c6a4981"},- {file = "psycopg2-2.9.9-cp312-cp312-win32.whl", hash = "sha256:d735786acc7dd25815e89cc4ad529a43af779db2e25aa7c626de864127e5a024"},- {file = "psycopg2-2.9.9-cp312-cp312-win_amd64.whl", hash = "sha256:a7653d00b732afb6fc597e29c50ad28087dcb4fbfb28e86092277a559ae4e693"},{file = "psycopg2-2.9.9-cp37-cp37m-win32.whl", hash = "sha256:5e0d98cade4f0e0304d7d6f25bbfbc5bd186e07b38eac65379309c4ca3193efa"},{file = "psycopg2-2.9.9-cp37-cp37m-win_amd64.whl", hash = "sha256:7e2dacf8b009a1c1e843b5213a87f7c544b2b042476ed7755be813eaf4e8347a"},{file = "psycopg2-2.9.9-cp38-cp38-win32.whl", hash = "sha256:ff432630e510709564c01dafdbe996cb552e0b9f3f065eb89bdce5bd31fabf4c"},@@ -3610,23 +3648,6 @@ files = [{file = "python_json_logger-2.0.7-py3-none-any.whl", hash = "sha256:f380b826a991ebbe3de4d897aeec42760035ac760345e57b812938dc8b35e2bd"},]-[[package]]-name = "python-lsp-jsonrpc"-version = "1.0.0"-description = "JSON RPC 2.0 server library"-optional = false-python-versions = "*"-files = [- {file = "python-lsp-jsonrpc-1.0.0.tar.gz", hash = "sha256:7bec170733db628d3506ea3a5288ff76aa33c70215ed223abdb0d95e957660bd"},- {file = "python_lsp_jsonrpc-1.0.0-py3-none-any.whl", hash = "sha256:079b143be64b0a378bdb21dff5e28a8c1393fe7e8a654ef068322d754e545fc7"},-]--[package.dependencies]-ujson = ">=3.0.0"--[package.extras]-test = ["coverage", "pycodestyle", "pyflakes", "pylint", "pytest", "pytest-cov"]-[[package]]name = "python-magic"version = "0.4.27"@@ -3663,13 +3684,13 @@ files = [[[package]]name = "pytz"-version = "2023.3.post1"+version = "2021.3"description = "World timezone definitions, modern and historical"optional = falsepython-versions = "*"files = [- {file = "pytz-2023.3.post1-py2.py3-none-any.whl", hash = "sha256:ce42d816b81b68506614c11e8937d3aa9e41007ceb50bfdcb0749b921bf646c7"},- {file = "pytz-2023.3.post1.tar.gz", hash = "sha256:7b4fddbeb94a1eba4b557da24f19fdf9db575192544270a9101d8509f9f43d7b"},+ {file = "pytz-2021.3-py2.py3-none-any.whl", hash = "sha256:3672058bc3453457b622aab7a1c3bfd5ab0bdae451512f6cf25f64ed37f5b87c"},+ {file = "pytz-2021.3.tar.gz", hash = "sha256:acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326"},][[package]]@@ -4122,16 +4143,16 @@ doc = ["Sphinx", "sphinx-rtd-theme"][[package]]name = "semgrep"-version = "1.46.0"+version = "1.48.0"description = "Lightweight static analysis for many languages. Find bug variants with patterns that look like source code."optional = false-python-versions = ">=3.7"+python-versions = ">=3.8"files = [- {file = "semgrep-1.46.0-cp37.cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-any.whl", hash = "sha256:ab4662b7ee663910da71d5808178f856d94a000c74736d4a7b46520e26daa4c4"},- {file = "semgrep-1.46.0-cp37.cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-macosx_10_14_x86_64.whl", hash = "sha256:5311e077501fe9c5345718451097939276bce483f3c918907b6151f6ec88c930"},- {file = "semgrep-1.46.0-cp37.cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-macosx_11_0_arm64.whl", hash = "sha256:e7c40073533282378545e3467a5c74e06ddcefe7d0c9e12cec39f0a31db3710d"},- {file = "semgrep-1.46.0-cp37.cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-musllinux_1_0_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91984fb9959d29325885afad6db8149baf30a811dd0ebe6aa80507801828008d"},- {file = "semgrep-1.46.0.tar.gz", hash = "sha256:f354e7e6ab3ccc8c0932126f30f218a12f5f254ef8ff187ec8e708887d31a215"},+ {file = "semgrep-1.48.0-cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-any.whl", hash = "sha256:35999402ada6cc9ae03642eb2fb1011fcaf46f23a85d56335d2a8de8a04db38f"},+ {file = "semgrep-1.48.0-cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-macosx_10_14_x86_64.whl", hash = "sha256:111a0a9675735f7ba0b4a47f5c17c989c9243f2cf4a35e92cbfb0cd8ca24c497"},+ {file = "semgrep-1.48.0-cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-macosx_11_0_arm64.whl", hash = "sha256:7a669e8b4beb977f7fe76cce887c15c5af9522f0bd8b9bc60929d3135a23b90e"},+ {file = "semgrep-1.48.0-cp38.cp39.cp310.cp311.py37.py38.py39.py310.py311-none-musllinux_1_0_aarch64.manylinux2014_aarch64.whl", hash = "sha256:516706163a1a6d128dbcb5fec5a0d175371bf0a25a2c0afe70517f1081aa463e"},+ {file = "semgrep-1.48.0.tar.gz", hash = "sha256:9db8547dadd3f65e62c96a74d756be4469559a8a9e11f39549316cbe6930e5a6"},][package.dependencies]@@ -4145,7 +4166,6 @@ glom = ">=22.1,<23.0"jsonschema = ">=4.6,<5.0"packaging = ">=21.0"peewee = ">=3.14,<4.0"-python-lsp-jsonrpc = ">=1.0.0,<1.1.0"requests = ">=2.22,<3.0"rich = ">=12.6.0""ruamel.yaml" = ">=0.16.0,<0.18"@@ -4531,13 +4551,13 @@ files = [[[package]]name = "types-redis"-version = "4.6.0.9"+version = "4.6.0.10"description = "Typing stubs for redis"optional = falsepython-versions = ">=3.7"files = [- {file = "types-redis-4.6.0.9.tar.gz", hash = "sha256:06ac31ed7b23aae2d230a62e4bf7d0037aee10ab9f68eee261ac8be8402daf92"},- {file = "types_redis-4.6.0.9-py3-none-any.whl", hash = "sha256:12fb29ff019b62998b17bb086cff260e625477db1a17bfca6bae0f43ab3447a5"},+ {file = "types-redis-4.6.0.10.tar.gz", hash = "sha256:aa7fb5f743534500f274ddf11ab1c910aae1020481865a36b799e1d67de2aaf3"},+ {file = "types_redis-4.6.0.10-py3-none-any.whl", hash = "sha256:00f003da884ec3d1d54633186b4cbd587b39782595c5603330cc46a51f9bcf6e"},][package.dependencies]@@ -4602,76 +4622,6 @@ files = [{file = "tzdata-2023.3.tar.gz", hash = "sha256:11ef1e08e54acb0d4f95bdb1be05da659673de4acbd21bf9c69e94cc5e907a3a"},]-[[package]]-name = "ujson"-version = "5.8.0"-description = "Ultra fast JSON encoder and decoder for Python"-optional = false-python-versions = ">=3.8"-files = [- {file = "ujson-5.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f4511560d75b15ecb367eef561554959b9d49b6ec3b8d5634212f9fed74a6df1"},- {file = "ujson-5.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9399eaa5d1931a0ead49dce3ffacbea63f3177978588b956036bfe53cdf6af75"},- {file = "ujson-5.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4e7bb7eba0e1963f8b768f9c458ecb193e5bf6977090182e2b4f4408f35ac76"},- {file = "ujson-5.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:40931d7c08c4ce99adc4b409ddb1bbb01635a950e81239c2382cfe24251b127a"},- {file = "ujson-5.8.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d53039d39de65360e924b511c7ca1a67b0975c34c015dd468fca492b11caa8f7"},- {file = "ujson-5.8.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:bdf04c6af3852161be9613e458a1fb67327910391de8ffedb8332e60800147a2"},- {file = "ujson-5.8.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:a70f776bda2e5072a086c02792c7863ba5833d565189e09fabbd04c8b4c3abba"},- {file = "ujson-5.8.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:f26629ac531d712f93192c233a74888bc8b8212558bd7d04c349125f10199fcf"},- {file = "ujson-5.8.0-cp310-cp310-win32.whl", hash = "sha256:7ecc33b107ae88405aebdb8d82c13d6944be2331ebb04399134c03171509371a"},- {file = "ujson-5.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:3b27a8da7a080add559a3b73ec9ebd52e82cc4419f7c6fb7266e62439a055ed0"},- {file = "ujson-5.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:193349a998cd821483a25f5df30b44e8f495423840ee11b3b28df092ddfd0f7f"},- {file = "ujson-5.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4ddeabbc78b2aed531f167d1e70387b151900bc856d61e9325fcdfefb2a51ad8"},- {file = "ujson-5.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5ce24909a9c25062e60653073dd6d5e6ec9d6ad7ed6e0069450d5b673c854405"},- {file = "ujson-5.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:27a2a3c7620ebe43641e926a1062bc04e92dbe90d3501687957d71b4bdddaec4"},- {file = "ujson-5.8.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2b852bdf920fe9f84e2a2c210cc45f1b64f763b4f7d01468b33f7791698e455e"},- {file = "ujson-5.8.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:20768961a6a706170497129960762ded9c89fb1c10db2989c56956b162e2a8a3"},- {file = "ujson-5.8.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:e0147d41e9fb5cd174207c4a2895c5e24813204499fd0839951d4c8784a23bf5"},- {file = "ujson-5.8.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e3673053b036fd161ae7a5a33358ccae6793ee89fd499000204676baafd7b3aa"},- {file = "ujson-5.8.0-cp311-cp311-win32.whl", hash = "sha256:a89cf3cd8bf33a37600431b7024a7ccf499db25f9f0b332947fbc79043aad879"},- {file = "ujson-5.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:3659deec9ab9eb19e8646932bfe6fe22730757c4addbe9d7d5544e879dc1b721"},- {file = "ujson-5.8.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:102bf31c56f59538cccdfec45649780ae00657e86247c07edac434cb14d5388c"},- {file = "ujson-5.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:299a312c3e85edee1178cb6453645217ba23b4e3186412677fa48e9a7f986de6"},- {file = "ujson-5.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2e385a7679b9088d7bc43a64811a7713cc7c33d032d020f757c54e7d41931ae"},- {file = "ujson-5.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ad24ec130855d4430a682c7a60ca0bc158f8253ec81feed4073801f6b6cb681b"},- {file = "ujson-5.8.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:16fde596d5e45bdf0d7de615346a102510ac8c405098e5595625015b0d4b5296"},- {file = "ujson-5.8.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:6d230d870d1ce03df915e694dcfa3f4e8714369cce2346686dbe0bc8e3f135e7"},- {file = "ujson-5.8.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:9571de0c53db5cbc265945e08f093f093af2c5a11e14772c72d8e37fceeedd08"},- {file = "ujson-5.8.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:7cba16b26efe774c096a5e822e4f27097b7c81ed6fb5264a2b3f5fd8784bab30"},- {file = "ujson-5.8.0-cp312-cp312-win32.whl", hash = "sha256:48c7d373ff22366eecfa36a52b9b55b0ee5bd44c2b50e16084aa88b9de038916"},- {file = "ujson-5.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:5ac97b1e182d81cf395ded620528c59f4177eee024b4b39a50cdd7b720fdeec6"},- {file = "ujson-5.8.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:2a64cc32bb4a436e5813b83f5aab0889927e5ea1788bf99b930fad853c5625cb"},- {file = "ujson-5.8.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:e54578fa8838ddc722539a752adfce9372474114f8c127bb316db5392d942f8b"},- {file = "ujson-5.8.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9721cd112b5e4687cb4ade12a7b8af8b048d4991227ae8066d9c4b3a6642a582"},- {file = "ujson-5.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d9707e5aacf63fb919f6237d6490c4e0244c7f8d3dc2a0f84d7dec5db7cb54c"},- {file = "ujson-5.8.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0be81bae295f65a6896b0c9030b55a106fb2dec69ef877253a87bc7c9c5308f7"},- {file = "ujson-5.8.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:ae7f4725c344bf437e9b881019c558416fe84ad9c6b67426416c131ad577df67"},- {file = "ujson-5.8.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:9ab282d67ef3097105552bf151438b551cc4bedb3f24d80fada830f2e132aeb9"},- {file = "ujson-5.8.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:94c7bd9880fa33fcf7f6d7f4cc032e2371adee3c5dba2922b918987141d1bf07"},- {file = "ujson-5.8.0-cp38-cp38-win32.whl", hash = "sha256:bf5737dbcfe0fa0ac8fa599eceafae86b376492c8f1e4b84e3adf765f03fb564"},- {file = "ujson-5.8.0-cp38-cp38-win_amd64.whl", hash = "sha256:11da6bed916f9bfacf13f4fc6a9594abd62b2bb115acfb17a77b0f03bee4cfd5"},- {file = "ujson-5.8.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:69b3104a2603bab510497ceabc186ba40fef38ec731c0ccaa662e01ff94a985c"},- {file = "ujson-5.8.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9249fdefeb021e00b46025e77feed89cd91ffe9b3a49415239103fc1d5d9c29a"},- {file = "ujson-5.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2873d196725a8193f56dde527b322c4bc79ed97cd60f1d087826ac3290cf9207"},- {file = "ujson-5.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6a4dafa9010c366589f55afb0fd67084acd8added1a51251008f9ff2c3e44042"},- {file = "ujson-5.8.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7a42baa647a50fa8bed53d4e242be61023bd37b93577f27f90ffe521ac9dc7a3"},- {file = "ujson-5.8.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:f3554eaadffe416c6f543af442066afa6549edbc34fe6a7719818c3e72ebfe95"},- {file = "ujson-5.8.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:fb87decf38cc82bcdea1d7511e73629e651bdec3a43ab40985167ab8449b769c"},- {file = "ujson-5.8.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:407d60eb942c318482bbfb1e66be093308bb11617d41c613e33b4ce5be789adc"},- {file = "ujson-5.8.0-cp39-cp39-win32.whl", hash = "sha256:0fe1b7edaf560ca6ab023f81cbeaf9946a240876a993b8c5a21a1c539171d903"},- {file = "ujson-5.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:3f9b63530a5392eb687baff3989d0fb5f45194ae5b1ca8276282fb647f8dcdb3"},- {file = "ujson-5.8.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:efeddf950fb15a832376c0c01d8d7713479fbeceaed1eaecb2665aa62c305aec"},- {file = "ujson-5.8.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7d8283ac5d03e65f488530c43d6610134309085b71db4f675e9cf5dff96a8282"},- {file = "ujson-5.8.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eb0142f6f10f57598655340a3b2c70ed4646cbe674191da195eb0985a9813b83"},- {file = "ujson-5.8.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:07d459aca895eb17eb463b00441986b021b9312c6c8cc1d06880925c7f51009c"},- {file = "ujson-5.8.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:d524a8c15cfc863705991d70bbec998456a42c405c291d0f84a74ad7f35c5109"},- {file = "ujson-5.8.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:d6f84a7a175c75beecde53a624881ff618e9433045a69fcfb5e154b73cdaa377"},- {file = "ujson-5.8.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b748797131ac7b29826d1524db1cc366d2722ab7afacc2ce1287cdafccddbf1f"},- {file = "ujson-5.8.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e72ba76313d48a1a3a42e7dc9d1db32ea93fac782ad8dde6f8b13e35c229130"},- {file = "ujson-5.8.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f504117a39cb98abba4153bf0b46b4954cc5d62f6351a14660201500ba31fe7f"},- {file = "ujson-5.8.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:a8c91b6f4bf23f274af9002b128d133b735141e867109487d17e344d38b87d94"},- {file = "ujson-5.8.0.tar.gz", hash = "sha256:78e318def4ade898a461b3d92a79f9441e7e0e4d2ad5419abed4336d702c7425"},-]-[[package]]name = "urllib3"version = "1.26.18"@@ -5298,4 +5248,4 @@ test = ["pytest"][metadata]lock-version = "2.0"python-versions = "~3.9"-content-hash = "f653f81dffe86a4a80bc10620ff077f12f07a511bd4aa5ad5e2428627b857068"+content-hash = "24586dcfd1d6b539019417577405f1bf0059f9aff813310e287546f01d980a6c"diff --git a/pyproject.toml b/pyproject.tomlindex f63b8fe287..0be5085065 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,3 +1,7 @@+[build-system]+requires = ["poetry-core>=1.0.0"]+build-backend = "poetry.core.masonry.api"+[tool.poetry]name = "saleor"version = "3.18.0-a.0"@@ -11,68 +15,78 @@ documentation = "https://docs.saleor.io/"[tool.poetry.dependencies]python = "~3.9"+ Adyen = "^4.0.0"+ aniso8601 = "^7.0.0"+ asgiref = "^3.7.2"+ Authlib = "^1.0.0"+ authorizenet = "^1.1.3"+ azure-common = "^1.1.28"+ azure-storage-blob = "^12.12.0"+ azure-storage-common = "^2.1.0"babel = ">=2.8,<2.14"boto3 = "^1.28"+ botocore = "^1.31"braintree = ">=4.2,<4.23"+ cryptography = "^41.0.4"dj-database-url = "^2"dj-email-url = "^1"django = {version = "^3.2.22", extras = ["bcrypt"]}+ django-cache-url = "^3.1.2"+ django-celery-beat = "^2.2.1"django-countries = "^7.2"django-filter = "^23.1"django-measurement = "^3.0"django-mptt = "^0"django-phonenumber-field = ">=4,<8"django-prices = "^2.3"+ django-redis = "^5.0.0"django-stubs-ext = "^4.2.1"draftjs-sanitizer = "^1.0.0"faker = ">=4.1,<20.0"- freezegun = "^1"+ google-cloud-pubsub = ">=1.7,<3.0"google-cloud-storage = "^2.0.0"google-i18n-address = "^3.1.0"+ graphene = "<3.0"+ graphql-core = "^2.3.2"+ graphql-relay = "^2.0.1"+ gunicorn = "^21.2.0"+ html2text = "^2020.1.16"html-to-draftjs = "^1.0.1"+ jaeger-client = "^4.5.0"+ lxml = "^4.9.3"markdown = "^3.1.1"- petl = "1.7.14"+ measurement = "^3.2.2"+ micawber = "^0.5.2"+ oauthlib = "^3.1"opentracing = "^2.3.0"+ petl = "1.7.14"phonenumberslite = "^8.12.25"+ pillow = "^10.1.0"+ pillow-avif-plugin = "^1.3.1"+ posuto = "^2023.2.0"prices = "^1.0"+ promise = "^2.3"psycopg2 = "^2.8.3"+ pybars3 = "^0.9.7"+ pyjwt = "2.5.0" # Version 2.6.0 changed iat validation which causes tests to fail: https://github.com/saleor/saleor/issues/11047+ python-dateutil = "^2.8.2"+ python-http-client = "^3.3.7"+ python-json-logger = ">=0.1.11,<2.1.0"+ pytimeparse = "^1.1.8"+ pytz = "^2021.3"razorpay = "^1.2"+ redis = "^4.6.0"requests = "^2.22"+ requests-hardened = "1.0.0b2"+ Rx = "^1.6.3"+ semantic-version = "^2.10.0"+ sendgrid = "^6.7.1"sentry-sdk = "^1.28"stripe = "^3.0.0"text-unidecode = "^1.2"- # libpango >=1.44 is required- weasyprint = ">=53.0"- oauthlib = "^3.1"- jaeger-client = "^4.5.0"- openpyxl = "^3.0.3"- django-cache-url = "^3.1.2"- pyjwt = "2.5.0" # Version 2.6.0 changed iat validation which causes tests to fail: https://github.com/saleor/saleor/issues/11047- python-json-logger = ">=0.1.11,<2.1.0"- pytimeparse = "^1.1.8"- python-magic = "^0.4.27"- django-redis = "^5.0.0"- Adyen = "^4.0.0"- google-cloud-pubsub = ">=1.7,<3.0"- gunicorn = "^21.2.0"- pybars3 = "^0.9.7"- html2text = "^2020.1.16"- authorizenet = "^1.1.3"- azure-common = "^1.1.28"- azure-storage-blob = "^12.12.0"- azure-storage-common = "^2.1.0"- sendgrid = "^6.7.1"- micawber = "^0.5.2"- django-celery-beat = "^2.2.1"- posuto = "^2023.2.0"- cryptography = "^41.0.4"- graphene = "<3.0"+ urllib3 = "^1.26.18"uvicorn = {extras = ["standard"], version = "^0.23.1"}- Authlib = "^1.0.0"- pillow-avif-plugin = "^1.3.1"- semantic-version = "^2.10.0"- requests-hardened = "1.0.0b2"- pytest-memray = "^1.5.0"+ weasyprint = ">=53.0" # libpango >=1.44 is required[tool.poetry.dependencies.celery]version = ">=4.4.5,<6.0.0"@@ -82,21 +96,28 @@ documentation = "https://docs.saleor.io/"version = "^1.11"extras = [ "google" ]+ [tool.poetry.dependencies.python-magic]+ version = "^0.4.27"+ markers = "sys_platform != 'win32'"+[tool.poetry.dependencies.python-magic-bin]version = "^0.4.14"platform = "win32"- [tool.poetry.dev-dependencies]+ [tool.poetry.group.dev.dependencies]before_after = "^1.0.1"coverage = "^7.2"+ deptry = "^0.12.0"django-debug-toolbar = "^4.0"django-debug-toolbar-request-history = "^0"django-graphiql-debug-toolbar = "^0.2.0"django-extensions = "^3.1.2"django-stubs = "^4.2.6"fakeredis = "^2.10"+ freezegun = "^1"mypy = "1.6.1"mypy-extensions = "^1.0.0"+ openpyxl = "^3.0.3"pre-commit = "^3.4"pytest = "^7.0.1"pytest-asyncio = "^0.21.0"@@ -104,6 +125,7 @@ documentation = "https://docs.saleor.io/"pytest-cov = "^4.0.0"pytest-django = "4.5.2"pytest-django-queries = "~1.2"+ pytest-memray = "^1.5.0"pytest-mock = "^3.6.1"pytest-recording = "^0.13.0"pytest-socket = "^0.6.0"@@ -122,6 +144,19 @@ documentation = "https://docs.saleor.io/"types-six = "^1.16.17"vcrpy = ">=4.0,<5.0"+[tool.deptry]+extend_exclude = ["conftest\\.py", ".*/conftest\\.py", ".*/tests/.*"]++ [tool.deptry.package_module_name_map]+ graphql-core = "graphql"+ pillow = "PIL"+ python-magic-bin = "magic"++ [tool.deptry.per_rule_ignores]+ DEP001 = ["pkg_resources"]+ DEP002 = ["azure-common", "azure-storage-blob", "azure-storage-common", "django-redis", "gunicorn", "psycopg2"]+ DEP004 = ["debug_toolbar", "graphiql_debug_toolbar"]+[tool.ruff]extend-select = ["D", "I", "ISC001", "ISC002", "PIE", "PT", "T20", "UP"]ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D202", "D203", "D206", "D213", "D407", "PT019"]diff --git a/saleor/graphql/core/scalars.py b/saleor/graphql/core/scalars.pyindex 873035ff03..35cfd6c8ad 100644--- a/saleor/graphql/core/scalars.py+++ b/saleor/graphql/core/scalars.py@@ -5,7 +5,6 @@ from graphene.types.generic import GenericScalarfrom graphql.error import GraphQLErrorfrom graphql.language import astfrom measurement.measures import Weight-from six import string_typesfrom ...core.weight import (convert_weight_to_default_weight_unit,@@ -160,7 +159,7 @@ class Date(graphene.Date):def parse_value(value):# The parse_value method is overridden to handle the empty string.# The current graphene version returning unhandled `IndexError`.- if isinstance(value, string_types) and not value:+ if isinstance(value, str) and not value:return Nonereturn super(Date, Date).parse_value(value)