Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Bump flake8

Marcin Gębalae1563acfa442
diff --git a/poetry.lock b/poetry.lock
index 7132a81463..183f9c66ad 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -148,10 +148,10 @@ description = "The AWS SDK for Python"
name = "boto3"
optional = false
python-versions = "*"
-version = "1.13.6"
+version = "1.13.7"
[package.dependencies]
-botocore = ">=1.16.6,<1.17.0"
+botocore = ">=1.16.7,<1.17.0"
jmespath = ">=0.7.1,<1.0.0"
s3transfer = ">=0.3.0,<0.4.0"
@@ -161,7 +161,7 @@ description = "Low-level, data-driven core of boto 3."
name = "botocore"
optional = false
python-versions = "*"
-version = "1.16.6"
+version = "1.16.7"
[package.dependencies]
docutils = ">=0.10,<0.16"
@@ -645,11 +645,11 @@ description = "Mypy stubs for Django"
name = "django-stubs"
optional = false
python-versions = ">=3.6"
-version = "1.5.0"
+version = "1.2.0"
[package.dependencies]
django = "*"
-mypy = ">=0.770,<0.780"
+mypy = ">=0.730"
typing-extensions = "*"
[[package]]
@@ -710,14 +710,6 @@ version = "0.7.1"
babel = ">=1.3"
django = ">=2.2"
-[[package]]
-category = "dev"
-description = "Discover and load entry points from installed packages."
-name = "entrypoints"
-optional = false
-python-versions = ">=2.7"
-version = "0.3"
-
[[package]]
category = "dev"
description = "execnet: rapid multi-Python deployment"
@@ -754,17 +746,16 @@ version = "3.0.12"
[[package]]
category = "dev"
-description = "the modular source code checker: pep8, pyflakes and co"
+description = "the modular source code checker: pep8 pyflakes and co"
name = "flake8"
optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
-version = "3.7.9"
+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7"
+version = "3.8.1"
[package.dependencies]
-entrypoints = ">=0.3.0,<0.4.0"
mccabe = ">=0.6.0,<0.7.0"
-pycodestyle = ">=2.5.0,<2.6.0"
-pyflakes = ">=2.1.0,<2.2.0"
+pycodestyle = ">=2.6.0a1,<2.7.0"
+pyflakes = ">=2.2.0,<2.3.0"
[[package]]
category = "main"
@@ -806,7 +797,7 @@ description = "Google Authentication Library"
name = "google-auth"
optional = false
python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*"
-version = "1.14.2"
+version = "1.14.3"
[package.dependencies]
cachetools = ">=2.0.0,<5.0"
@@ -1229,10 +1220,10 @@ description = "Optional static typing for Python"
name = "mypy"
optional = false
python-versions = ">=3.5"
-version = "0.770"
+version = "0.740"
[package.dependencies]
-mypy-extensions = ">=0.4.3,<0.5.0"
+mypy-extensions = ">=0.4.0,<0.5.0"
typed-ast = ">=1.4.0,<1.5.0"
typing-extensions = ">=3.7.4"
@@ -1332,7 +1323,7 @@ description = "A framework for managing and maintaining multi-language pre-commi
name = "pre-commit"
optional = false
python-versions = ">=3.6.1"
-version = "2.3.0"
+version = "2.4.0"
[package.dependencies]
cfgv = ">=2.0.0"
@@ -1340,7 +1331,7 @@ identify = ">=1.0.0"
nodeenv = ">=0.11.1"
pyyaml = ">=5.1"
toml = "*"
-virtualenv = ">=15.2"
+virtualenv = ">=20.0.8"
[[package]]
category = "main"
@@ -1432,7 +1423,7 @@ description = "Python style guide checker"
name = "pycodestyle"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
-version = "2.5.0"
+version = "2.6.0"
[[package]]
category = "main"
@@ -1459,7 +1450,7 @@ description = "passive checker of Python programs"
name = "pyflakes"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
-version = "2.1.1"
+version = "2.2.0"
[[package]]
category = "main"
@@ -1881,7 +1872,7 @@ description = "Python bindings for the Stripe API"
name = "stripe"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
-version = "2.47.0"
+version = "2.48.0"
[package.dependencies]
[package.dependencies.requests]
@@ -2170,7 +2161,7 @@ idna = ">=2.0"
multidict = ">=4.0"
[metadata]
-content-hash = "03f655277ff032b90cd40072da87f8d24eeaacd4be9d378ed22a2ae26a02cec7"
+content-hash = "66e858025822562713f9a69c78691c7edb9a4f9b1c0ec6c31936ce5b78661417"
python-versions = "~3.8"
[metadata.files]
@@ -2228,12 +2219,12 @@ black = [
{file = "black-19.10b0.tar.gz", hash = "sha256:c2edb73a08e9e0e6f65a0e6af18b059b8b1cdd5bef997d7a0b181df93dc81539"},
]
boto3 = [
- {file = "boto3-1.13.6-py2.py3-none-any.whl", hash = "sha256:05f75d30aa10094eb96bba22b25b6005126de748188f196a5fffab8a76d821ac"},
- {file = "boto3-1.13.6.tar.gz", hash = "sha256:f1ac7eb23ff8b1d7e314123668ff1e93b874dd396ac5424adc443d68bd8a6fbf"},
+ {file = "boto3-1.13.7-py2.py3-none-any.whl", hash = "sha256:9b5d0d3e2a0374fa6786d7e42f42c25b69695b449b816823be46875af9c32e05"},
+ {file = "boto3-1.13.7.tar.gz", hash = "sha256:a9518f580f18b9ca5638be0d7eb90651cceb0fff3524739488763f6dcade1caf"},
]
botocore = [
- {file = "botocore-1.16.6-py2.py3-none-any.whl", hash = "sha256:1f5e57f41f9f9400feffc62f17b517a601643ffec69f7ee927555604112cc012"},
- {file = "botocore-1.16.6.tar.gz", hash = "sha256:b9c8e0aa07770b7b371d586db41eef46e70bfc4ab47f7a1ee1acd4e9c811c6c9"},
+ {file = "botocore-1.16.7-py2.py3-none-any.whl", hash = "sha256:48f68a27825632b5567796f5e6f46889971d9e48908ba9fdfc319cf78ffe1e91"},
+ {file = "botocore-1.16.7.tar.gz", hash = "sha256:7cd876e6186e845c3667fdcbfd73756f09761c2d5695dfba64b00a08195e7c1f"},
]
braintree = [
{file = "braintree-3.49.0-py2.py3-none-any.whl", hash = "sha256:7cdd715a5a61339e4e5dcb5611cf80512d5fdb0e4da69307a64141d3597357f7"},
@@ -2431,8 +2422,8 @@ django-storages = [
{file = "django_storages-1.9.1-py2.py3-none-any.whl", hash = "sha256:3103991c2ee8cef8a2ff096709973ffe7106183d211a79f22cf855f33533d924"},
]
django-stubs = [
- {file = "django-stubs-1.5.0.tar.gz", hash = "sha256:b4c9042f2c2fcb89dc0fb37df070cce0f9bf93b39ae193847b6e5a392b13c430"},
- {file = "django_stubs-1.5.0-py3-none-any.whl", hash = "sha256:4a03df70e062f4133085efc461148d0934f36ccfd60a2b6d7bc35821f62008b6"},
+ {file = "django-stubs-1.2.0.tar.gz", hash = "sha256:c0515576de547bb33057e24d1b0294d10a68e55150ee32fc964f1082192ab012"},
+ {file = "django_stubs-1.2.0-py3-none-any.whl", hash = "sha256:ca565958a66c0772a11bf95e415d0bcd476eb59919a7ed1a417cc93315d68809"},
]
django-templated-email = [
{file = "django-templated-email-2.3.0.tar.gz", hash = "sha256:536c4e5ae099eabfb9aab36087d4d7799948c654e73da55a744213d086d5bb33"},
@@ -2453,10 +2444,6 @@ enmerkar = [
{file = "enmerkar-0.7.1-py3-none-any.whl", hash = "sha256:ba5a79e022963580c994ce8f4fe8477d574159adbe86e5271b1a3d4127b8794d"},
{file = "enmerkar-0.7.1.tar.gz", hash = "sha256:a4a6c859b4ed293deee40ff61d6695b3ff7bc153770a1799f2be872181282e00"},
]
-entrypoints = [
- {file = "entrypoints-0.3-py2.py3-none-any.whl", hash = "sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19"},
- {file = "entrypoints-0.3.tar.gz", hash = "sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451"},
-]
execnet = [
{file = "execnet-1.7.1-py2.py3-none-any.whl", hash = "sha256:d4efd397930c46415f62f8a31388d6be4f27a91d7550eb79bc64a756e0056547"},
{file = "execnet-1.7.1.tar.gz", hash = "sha256:cacb9df31c9680ec5f95553976c4da484d407e85e41c83cb812aa014f0eddc50"},
@@ -2470,8 +2457,8 @@ filelock = [
{file = "filelock-3.0.12.tar.gz", hash = "sha256:18d82244ee114f543149c66a6e0c14e9c4f8a1044b5cdaadd0f82159d6a6ff59"},
]
flake8 = [
- {file = "flake8-3.7.9-py2.py3-none-any.whl", hash = "sha256:49356e766643ad15072a789a20915d3c91dc89fd313ccd71802303fd67e4deca"},
- {file = "flake8-3.7.9.tar.gz", hash = "sha256:45681a117ecc81e870cbf1262835ae4af5e7a8b08e40b944a8a6e6b895914cfb"},
+ {file = "flake8-3.8.1-py2.py3-none-any.whl", hash = "sha256:6c1193b0c3f853ef763969238f6c81e9e63ace9d024518edc020d5f1d6d93195"},
+ {file = "flake8-3.8.1.tar.gz", hash = "sha256:ea6623797bf9a52f4c9577d780da0bb17d65f870213f7b5bcc9fca82540c31d5"},
]
freezegun = [
{file = "freezegun-0.3.15-py2.py3-none-any.whl", hash = "sha256:82c757a05b7c7ca3e176bfebd7d6779fd9139c7cb4ef969c38a28d74deef89b2"},
@@ -2482,8 +2469,8 @@ google-api-core = [
{file = "google_api_core-1.17.0-py2.py3-none-any.whl", hash = "sha256:c0e430658ed6be902d7ba7095fb0a9cac810270d71bf7ac4484e76c300407aae"},
]
google-auth = [
- {file = "google-auth-1.14.2.tar.gz", hash = "sha256:2243db98475f7f2033c41af5185333cbf13780e8f5f96eaadd997c6f34181dcc"},
- {file = "google_auth-1.14.2-py2.py3-none-any.whl", hash = "sha256:23cfeeb71d98b7f51cd33650779d35291aeb8b23384976d497805d12eefc6e9b"},
+ {file = "google-auth-1.14.3.tar.gz", hash = "sha256:82d32f6601f35309c95d5917bcdf72f3ec193c7f46c79e433b8d76ccbe68e21d"},
+ {file = "google_auth-1.14.3-py2.py3-none-any.whl", hash = "sha256:4942ab1ff530e740866571c0416fb5a7dc9ec53233a8f8dff63e8cd7371003d1"},
]
google-cloud-core = [
{file = "google-cloud-core-1.3.0.tar.gz", hash = "sha256:878f9ad080a40cdcec85b92242c4b5819eeb8f120ebc5c9f640935e24fc129d8"},
@@ -2695,20 +2682,20 @@ multidict = [
{file = "multidict-4.7.5.tar.gz", hash = "sha256:aee283c49601fa4c13adc64c09c978838a7e812f85377ae130a24d7198c0331e"},
]
mypy = [
- {file = "mypy-0.770-cp35-cp35m-macosx_10_6_x86_64.whl", hash = "sha256:a34b577cdf6313bf24755f7a0e3f3c326d5c1f4fe7422d1d06498eb25ad0c600"},
- {file = "mypy-0.770-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:86c857510a9b7c3104cf4cde1568f4921762c8f9842e987bc03ed4f160925754"},
- {file = "mypy-0.770-cp35-cp35m-win_amd64.whl", hash = "sha256:a8ffcd53cb5dfc131850851cc09f1c44689c2812d0beb954d8138d4f5fc17f65"},
- {file = "mypy-0.770-cp36-cp36m-macosx_10_6_x86_64.whl", hash = "sha256:7687f6455ec3ed7649d1ae574136835a4272b65b3ddcf01ab8704ac65616c5ce"},
- {file = "mypy-0.770-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:3beff56b453b6ef94ecb2996bea101a08f1f8a9771d3cbf4988a61e4d9973761"},
- {file = "mypy-0.770-cp36-cp36m-win_amd64.whl", hash = "sha256:15b948e1302682e3682f11f50208b726a246ab4e6c1b39f9264a8796bb416aa2"},
- {file = "mypy-0.770-cp37-cp37m-macosx_10_6_x86_64.whl", hash = "sha256:b90928f2d9eb2f33162405f32dde9f6dcead63a0971ca8a1b50eb4ca3e35ceb8"},
- {file = "mypy-0.770-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:c56ffe22faa2e51054c5f7a3bc70a370939c2ed4de308c690e7949230c995913"},
- {file = "mypy-0.770-cp37-cp37m-win_amd64.whl", hash = "sha256:8dfb69fbf9f3aeed18afffb15e319ca7f8da9642336348ddd6cab2713ddcf8f9"},
- {file = "mypy-0.770-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:219a3116ecd015f8dca7b5d2c366c973509dfb9a8fc97ef044a36e3da66144a1"},
- {file = "mypy-0.770-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:7ec45a70d40ede1ec7ad7f95b3c94c9cf4c186a32f6bacb1795b60abd2f9ef27"},
- {file = "mypy-0.770-cp38-cp38-win_amd64.whl", hash = "sha256:f91c7ae919bbc3f96cd5e5b2e786b2b108343d1d7972ea130f7de27fdd547cf3"},
- {file = "mypy-0.770-py3-none-any.whl", hash = "sha256:3b1fc683fb204c6b4403a1ef23f0b1fac8e4477091585e0c8c54cbdf7d7bb164"},
- {file = "mypy-0.770.tar.gz", hash = "sha256:8a627507ef9b307b46a1fea9513d5c98680ba09591253082b4c48697ba05a4ae"},
+ {file = "mypy-0.740-cp35-cp35m-macosx_10_6_x86_64.whl", hash = "sha256:9371290aa2cad5ad133e4cdc43892778efd13293406f7340b9ffe99d5ec7c1d9"},
+ {file = "mypy-0.740-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:b428f883d2b3fe1d052c630642cc6afddd07d5cd7873da948644508be3b9d4a7"},
+ {file = "mypy-0.740-cp35-cp35m-win_amd64.whl", hash = "sha256:ace6ac1d0f87d4072f05b5468a084a45b4eda970e4d26704f201e06d47ab2990"},
+ {file = "mypy-0.740-cp36-cp36m-macosx_10_6_x86_64.whl", hash = "sha256:d7574e283f83c08501607586b3167728c58e8442947e027d2d4c7dcd6d82f453"},
+ {file = "mypy-0.740-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:d5bf0e6ec8ba346a2cf35cb55bf4adfddbc6b6576fcc9e10863daa523e418dbb"},
+ {file = "mypy-0.740-cp36-cp36m-win_amd64.whl", hash = "sha256:1521c186a3d200c399bd5573c828ea2db1362af7209b2adb1bb8532cea2fb36f"},
+ {file = "mypy-0.740-cp37-cp37m-macosx_10_6_x86_64.whl", hash = "sha256:dc889c84241a857c263a2b1cd1121507db7d5b5f5e87e77147097230f374d10b"},
+ {file = "mypy-0.740-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:6ed3b9b3fdc7193ea7aca6f3c20549b377a56f28769783a8f27191903a54170f"},
+ {file = "mypy-0.740-cp37-cp37m-win_amd64.whl", hash = "sha256:31a046ab040a84a0fc38bc93694876398e62bc9f35eca8ccbf6418b7297f4c00"},
+ {file = "mypy-0.740-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:672e418425d957e276c291930a3921b4a6413204f53fe7c37cad7bc57b9a3391"},
+ {file = "mypy-0.740-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:3b1a411909c84b2ae9b8283b58b48541654b918e8513c20a400bb946aa9111ae"},
+ {file = "mypy-0.740-cp38-cp38-win_amd64.whl", hash = "sha256:540c9caa57a22d0d5d3c69047cc9dd0094d49782603eb03069821b41f9e970e9"},
+ {file = "mypy-0.740-py3-none-any.whl", hash = "sha256:f4748697b349f373002656bf32fede706a0e713d67bfdcf04edf39b1f61d46eb"},
+ {file = "mypy-0.740.tar.gz", hash = "sha256:48c8bc99380575deb39f5d3400ebb6a8a1cb5cc669bbba4d3bb30f904e0a0e7d"},
]
mypy-extensions = [
{file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"},
@@ -2766,8 +2753,8 @@ pluggy = [
{file = "pluggy-0.13.1.tar.gz", hash = "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0"},
]
pre-commit = [
- {file = "pre_commit-2.3.0-py2.py3-none-any.whl", hash = "sha256:979b53dab1af35063a483bfe13b0fcbbf1a2cf8c46b60e0a9a8d08e8269647a1"},
- {file = "pre_commit-2.3.0.tar.gz", hash = "sha256:f3e85e68c6d1cbe7828d3471896f1b192cfcf1c4d83bf26e26beeb5941855257"},
+ {file = "pre_commit-2.4.0-py2.py3-none-any.whl", hash = "sha256:5559e09afcac7808933951ffaf4ff9aac524f31efbc3f24d021540b6c579813c"},
+ {file = "pre_commit-2.4.0.tar.gz", hash = "sha256:703e2e34cbe0eedb0d319eff9f7b83e2022bb5a3ab5289a6a8841441076514d0"},
]
prices = [
{file = "prices-1.0.0.tar.gz", hash = "sha256:1e920a2f3b8d610985e7effcecd2b9ccfe58798c4c9641f76f6b5eb4a4bcd91b"},
@@ -2867,8 +2854,8 @@ pyasn1-modules = [
{file = "pyasn1_modules-0.2.8-py3.7.egg", hash = "sha256:c29a5e5cc7a3f05926aff34e097e84f8589cd790ce0ed41b67aed6857b26aafd"},
]
pycodestyle = [
- {file = "pycodestyle-2.5.0-py2.py3-none-any.whl", hash = "sha256:95a2219d12372f05704562a14ec30bc76b05a5b297b21a5dfe3f6fac3491ae56"},
- {file = "pycodestyle-2.5.0.tar.gz", hash = "sha256:e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c"},
+ {file = "pycodestyle-2.6.0-py2.py3-none-any.whl", hash = "sha256:2295e7b2f6b5bd100585ebcb1f616591b652db8a741695b3d8f5d28bdc934367"},
+ {file = "pycodestyle-2.6.0.tar.gz", hash = "sha256:c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e"},
]
pycparser = [
{file = "pycparser-2.20-py2.py3-none-any.whl", hash = "sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705"},
@@ -2879,8 +2866,8 @@ pydocstyle = [
{file = "pydocstyle-5.0.2.tar.gz", hash = "sha256:f4f5d210610c2d153fae39093d44224c17429e2ad7da12a8b419aba5c2f614b5"},
]
pyflakes = [
- {file = "pyflakes-2.1.1-py2.py3-none-any.whl", hash = "sha256:17dbeb2e3f4d772725c777fabc446d5634d1038f234e77343108ce445ea69ce0"},
- {file = "pyflakes-2.1.1.tar.gz", hash = "sha256:d976835886f8c5b31d47970ed689944a0262b5f3afa00a5a7b4dc81e5449f8a2"},
+ {file = "pyflakes-2.2.0-py2.py3-none-any.whl", hash = "sha256:0d94e0e05a19e57a99444b6ddcf9a6eb2e5c68d3ca1e98e90707af8152c90a92"},
+ {file = "pyflakes-2.2.0.tar.gz", hash = "sha256:35b2d75ee967ea93b55750aa9edbbf72813e06a66ba54438df2cfac9e3c27fc8"},
]
pyjwt = [
{file = "PyJWT-1.7.1-py2.py3-none-any.whl", hash = "sha256:5c6eca3c2940464d106b99ba83b00c6add741c9becaec087fb7ccdefea71350e"},
@@ -3045,8 +3032,8 @@ sqlparse = [
{file = "sqlparse-0.3.1.tar.gz", hash = "sha256:e162203737712307dfe78860cc56c8da8a852ab2ee33750e33aeadf38d12c548"},
]
stripe = [
- {file = "stripe-2.47.0-py2.py3-none-any.whl", hash = "sha256:195de9785811cdc3147b1bd35be109f5008845fbbf6c94d32e84808ae9f9b28b"},
- {file = "stripe-2.47.0.tar.gz", hash = "sha256:54cd4a325f1bfb2f71a39ffbe6f68e6c62b9e25b407bcff62a825ae1726b5393"},
+ {file = "stripe-2.48.0-py2.py3-none-any.whl", hash = "sha256:bdbbea632b8faa983c670db61debbe0bdb5802ef98fd0613a03aa466e56cdade"},
+ {file = "stripe-2.48.0.tar.gz", hash = "sha256:515fe2cc915e639468f30150a39c162fc0fb090256ae9d6a04e5022925d136f1"},
]
sympy = [
{file = "sympy-1.5.1-py2.py3-none-any.whl", hash = "sha256:4880d3a351558063bd89febda302f220dc4b88de393bba81fa6539a3966f03fa"},
diff --git a/pyproject.toml b/pyproject.toml
index a359fe2581..4141a0ab54 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -69,7 +69,7 @@ django-debug-toolbar = "^2.0"
django-debug-toolbar-request-history = "^0"
django-graphiql-debug-toolbar = "^0.1.4"
django-extensions = "^2.2.1"
-flake8 = "^3.7.8"
+flake8 = "^3.8.1"
isort = "^4.3.21"
pre-commit = "^2.3"
pycodestyle = "^2.5"
@@ -87,8 +87,8 @@ pytest-vcr = "^1.0.2"
pytest-xdist = "^1.32"
tox = "^3.15.0"
transifex-client = "^0"
-django-stubs = "^1.5"
-mypy = "^0.770"
+django-stubs = "1.2"
+mypy = "0.740"
[tool.black]
target_version = ['py35', 'py36', 'py37', 'py38']
diff --git a/requirements.txt b/requirements.txt
index 0ed50cfece..e675ce27ae 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,11 +1,11 @@
amqp==2.5.2
aniso8601==7.0.0
asgiref==3.2.7
-babel==2.7.0
+babel==2.8.0
beautifulsoup4==4.7.1
billiard==3.6.3.0
-boto3==1.12.42
-botocore==1.15.42
+boto3==1.13.7
+botocore==1.16.7
braintree==3.49.0
cachetools==4.1.0
cairocffi==1.1.0
@@ -18,15 +18,15 @@ cssselect2==0.3.0
defusedxml==0.6.0
dj-database-url==0.5.0
dj-email-url==1.0.0
-django==3.0.5
+django==3.0.6
django-appconf==1.0.4
django-countries==6.1.2
django-filter==2.2.0
django-graphql-jwt==0.3.0
django-js-asset==1.2.2
-django-measurement==3.2.0
+django-measurement==3.2.3
django-mptt==0.11.0
-django-phonenumber-field==2.4.0
+django-phonenumber-field==4.0.0
django-prices==2.2.0
django-prices-openexchangerates==1.1.0
django-prices-vatlayer==1.1.0
@@ -40,15 +40,15 @@ enmerkar==0.7.1
faker==4.0.3
freezegun==0.3.15
google-api-core==1.17.0
-google-auth==1.14.0
+google-auth==1.14.3
google-cloud-core==1.3.0
-google-cloud-storage==1.27.0
+google-cloud-storage==1.28.1
google-i18n-address==2.3.5
google-measurement-protocol==1.0.0
google-resumable-media==0.5.0
googleapis-common-protos==1.51.0
graphene==2.1.8
-graphene-django==2.9.1
+graphene-django==2.10.0
graphene-federation==0.1.0
graphql-core==2.3.1
graphql-relay==2.0.1
@@ -60,15 +60,15 @@ jmespath==0.9.5
jsonfield==3.1.0
kombu==4.6.8
lxml==4.5.0
-markdown==3.2.1
-maxminddb==1.5.2
+markdown==3.2.2
+maxminddb==1.5.4
maxminddb-geolite2==2018.703
measurement==3.2.0
mpmath==1.1.0
oauthlib==3.1.0
opentracing==2.3.0
-phonenumberslite==8.12.1
-pillow==7.1.1
+phonenumberslite==8.12.3
+pillow==7.1.2
prices==1.0.0
promise==2.3
protobuf==3.11.3
@@ -80,11 +80,11 @@ pycparser==2.20
pyjwt==1.7.1
pyphen==0.9.5
python-dateutil==2.8.1
-python-magic==0.4.15
+python-magic==0.4.18
python-magic-bin==0.4.14; sys_platform == "win32"
-pytz==2019.3
+pytz==2020.1
razorpay==1.2.0
-redis==3.4.1
+redis==3.5.1
requests==2.23.0
rsa==4.0
rx==1.6.1
@@ -94,14 +94,14 @@ singledispatch==3.4.0.3
six==1.14.0
soupsieve==2.0
sqlparse==0.3.1
-stripe==2.45.0
+stripe==2.48.0
sympy==1.5.1
text-unidecode==1.3
threadloop==1.0.2
thrift==0.13.0
tinycss2==1.0.2
tornado==6.0.4
-tqdm==4.45.0
+tqdm==4.46.0
typing==3.7.4.1
urllib3==1.25.9
uwsgi==2.0.18; sys_platform != "win32"
diff --git a/requirements_dev.txt b/requirements_dev.txt
index c72609be81..55eeb0e1f0 100644
--- a/requirements_dev.txt
+++ b/requirements_dev.txt
@@ -1,18 +1,18 @@
amqp==2.5.2
aniso8601==7.0.0
apipkg==1.5
-appdirs==1.4.3
+appdirs==1.4.4
asgiref==3.2.7
-astroid==2.3.3
-atomicwrites==1.3.0; sys_platform == "win32"
+astroid==2.4.1
+atomicwrites==1.4.0; sys_platform == "win32"
attrs==19.3.0
-babel==2.7.0
+babel==2.8.0
beautifulsoup4==4.7.1
beautifultable==0.7.0
billiard==3.6.3.0
black==19.10b0
-boto3==1.12.42
-botocore==1.15.42
+boto3==1.13.7
+botocore==1.16.7
braintree==3.49.0
cachetools==4.1.0
cairocffi==1.1.0
@@ -22,7 +22,7 @@ certifi==2020.4.5.1
cffi==1.14.0
cfgv==3.1.0
chardet==3.0.4
-click==7.1.1
+click==7.1.2
codecov==2.0.22
colorama==0.4.3
coverage==5.1
@@ -31,7 +31,7 @@ defusedxml==0.6.0
distlib==0.3.0
dj-database-url==0.5.0
dj-email-url==1.0.0
-django==3.0.5
+django==3.0.6
django-appconf==1.0.4
django-countries==6.1.2
django-debug-toolbar==2.2
@@ -41,9 +41,9 @@ django-filter==2.2.0
django-graphiql-debug-toolbar==0.1.4
django-graphql-jwt==0.3.0
django-js-asset==1.2.2
-django-measurement==3.2.0
+django-measurement==3.2.3
django-mptt==0.11.0
-django-phonenumber-field==2.4.0
+django-phonenumber-field==4.0.0
django-prices==2.2.0
django-prices-openexchangerates==1.1.0
django-prices-vatlayer==1.1.0
@@ -55,28 +55,27 @@ django-versatileimagefield==2.0
docutils==0.15.2
draftjs-sanitizer==1.0.0
enmerkar==0.7.1
-entrypoints==0.3
execnet==1.7.1
faker==4.0.3
filelock==3.0.12
-flake8==3.7.9
+flake8==3.8.1
freezegun==0.3.15
google-api-core==1.17.0
-google-auth==1.14.0
+google-auth==1.14.3
google-cloud-core==1.3.0
-google-cloud-storage==1.27.0
+google-cloud-storage==1.28.1
google-i18n-address==2.3.5
google-measurement-protocol==1.0.0
google-resumable-media==0.5.0
googleapis-common-protos==1.51.0
graphene==2.1.8
-graphene-django==2.9.1
+graphene-django==2.10.0
graphene-federation==0.1.0
graphql-core==2.3.1
graphql-relay==2.0.1
html-to-draftjs==1.0.1
html5lib==1.0.1
-identify==1.4.14
+identify==1.4.15
idna==2.9
isort==4.3.21
jaeger-client==4.3.0
@@ -86,9 +85,9 @@ jsonfield==3.1.0
kombu==4.6.8
lazy-object-proxy==1.4.3
lxml==4.5.0
-markdown==3.2.1
+markdown==3.2.2
markupsafe==1.1.1
-maxminddb==1.5.2
+maxminddb==1.5.4
maxminddb-geolite2==2018.703
mccabe==0.6.1
measurement==3.2.0
@@ -102,10 +101,10 @@ oauthlib==3.1.0
opentracing==2.3.0
packaging==20.3
pathspec==0.8.0
-phonenumberslite==8.12.1
-pillow==7.1.1
+phonenumberslite==8.12.3
+pillow==7.1.2
pluggy==0.13.1
-pre-commit==2.2.0
+pre-commit==2.4.0
prices==1.0.0
promise==2.3
protobuf==3.11.3
@@ -114,34 +113,34 @@ purl==1.5
py==1.8.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
-pycodestyle==2.5.0
+pycodestyle==2.6.0
pycparser==2.20
-pydocstyle==4.0.1
-pyflakes==2.1.1
+pydocstyle==5.0.2
+pyflakes==2.2.0
pyjwt==1.7.1
-pylint==2.4.4
+pylint==2.5.2
pylint-celery==0.3
pylint-django==2.0.15
pylint-plugin-utils==0.6
pyparsing==2.4.7
pyphen==0.9.5
-pytest==5.4.1
+pytest==5.4.2
pytest-cov==2.8.1
pytest-django==3.9.0
pytest-django-queries==1.1.0
pytest-forked==1.1.3
-pytest-mock==1.13.0
+pytest-mock==3.1.0
pytest-vcr==1.0.2
-pytest-xdist==1.31.0
+pytest-xdist==1.32.0
python-dateutil==2.8.1
-python-magic==0.4.15
+python-magic==0.4.18
python-magic-bin==0.4.14; sys_platform == "win32"
python-slugify==1.2.6
-pytz==2019.3
+pytz==2020.1
pyyaml==5.3.1
razorpay==1.2.0
-redis==3.4.1
-regex==2020.4.4
+redis==3.5.1
+regex==2020.5.7
requests==2.23.0
rsa==4.0
rx==1.6.1
@@ -152,7 +151,7 @@ six==1.14.0
snowballstemmer==2.0.0
soupsieve==2.0
sqlparse==0.3.1
-stripe==2.45.0
+stripe==2.48.0
sympy==1.5.1
text-unidecode==1.3
threadloop==1.0.2
@@ -160,8 +159,8 @@ thrift==0.13.0
tinycss2==1.0.2
toml==0.10.0
tornado==6.0.4
-tox==3.14.6
-tqdm==4.45.0
+tox==3.15.0
+tqdm==4.46.0
transifex-client==0.13.9
typed-ast==1.4.1
typing==3.7.4.1
@@ -171,9 +170,9 @@ urllib3==1.25.9
uwsgi==2.0.18; sys_platform != "win32"
vcrpy==4.0.2
vine==1.3.0
-virtualenv==20.0.18
+virtualenv==20.0.20
wcwidth==0.1.9
weasyprint==51
webencodings==0.5.1
-wrapt==1.11.2
+wrapt==1.12.1
yarl==1.4.2; python_version >= "3.6"
diff --git a/saleor/graphql/account/mutations/staff.py b/saleor/graphql/account/mutations/staff.py
index 4a84fc51f5..a21ffcd141 100644
--- a/saleor/graphql/account/mutations/staff.py
+++ b/saleor/graphql/account/mutations/staff.py
@@ -337,7 +337,8 @@ class StaffUpdate(StaffCreate):
Args:
instance: user instance which is going to deactivated
- user: requestor
+ requestor: user who performs the mutation
+ errors: a dictionary to accumulate mutation errors
"""
if requestor == instance:
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.py
index 72ae6737d1..ecb3a666b7 100644
--- a/saleor/graphql/product/mutations/attributes.py
+++ b/saleor/graphql/product/mutations/attributes.py
@@ -397,7 +397,7 @@ class AttributeAssign(BaseMutation):
raise ValidationError(
{
"operations": ValidationError(
- f"Attribute doesn't exist.",
+ "Attribute doesn't exist.",
code=ProductErrorCode.NOT_FOUND,
params={"attributes": list(invalid_attrs)},
)
diff --git a/saleor/graphql/product/sorters.py b/saleor/graphql/product/sorters.py
index c25ac7092c..05f8ad8efb 100644
--- a/saleor/graphql/product/sorters.py
+++ b/saleor/graphql/product/sorters.py
@@ -164,7 +164,7 @@ class ProductOrder(SortInputObjectType):
),
)
field = graphene.Argument(
- ProductOrderField, description=f"Sort products by the selected field."
+ ProductOrderField, description="Sort products by the selected field."
)
class Meta:
diff --git a/saleor/graphql/product/utils.py b/saleor/graphql/product/utils.py
index 95d5aab8cf..3f5d09130d 100644
--- a/saleor/graphql/product/utils.py
+++ b/saleor/graphql/product/utils.py
@@ -46,7 +46,7 @@ def validate_attribute_input_for_variant(instance: "Attribute", values: List[str
if len(values) != 1:
raise ValidationError(
- f"A variant attribute cannot take more than one value",
+ "A variant attribute cannot take more than one value",
code=ProductErrorCode.INVALID.value,
)
diff --git a/tests/api/test_attributes.py b/tests/api/test_attributes.py
index 8863c60109..f9c7616798 100644
--- a/tests/api/test_attributes.py
+++ b/tests/api/test_attributes.py
@@ -392,7 +392,7 @@ def test_attributes_in_collection_query(
)
other_product_type.product_attributes.add(other_attribute)
other_product = Product.objects.create(
- name=f"Another Product",
+ name="Another Product",
product_type=other_product_type,
category=other_category,
price=zero_money(),
diff --git a/tests/api/test_menu.py b/tests/api/test_menu.py
index 6dfd619f54..3572988bd5 100644
--- a/tests/api/test_menu.py
+++ b/tests/api/test_menu.py
@@ -833,7 +833,7 @@ def test_menu_cannot_pass_an_invalid_menu_item_node_type(
assert json.loads(response.content) == {
"data": {
"menuItemMove": {
- "errors": [{"field": "item", "message": f"Must receive a MenuItem id"}],
+ "errors": [{"field": "item", "message": "Must receive a MenuItem id"}],
"menu": None,
}
}
diff --git a/tests/api/test_product_sorting_attributes.py b/tests/api/test_product_sorting_attributes.py
index fd4cfe83c3..945fce1cfa 100644
--- a/tests/api/test_product_sorting_attributes.py
+++ b/tests/api/test_product_sorting_attributes.py
@@ -125,7 +125,7 @@ def products_structures(category):
)
dummy = product_models.Product.objects.create(
- name=f"Oopsie Dummy",
+ name="Oopsie Dummy",
slug="oopsie-dummy",
product_type=pt_other,
category=category,
@@ -133,7 +133,7 @@ def products_structures(category):
is_published=True,
)
product_models.Product.objects.create(
- name=f"Another Dummy but first in ASC and has no attribute value",
+ name="Another Dummy but first in ASC and has no attribute value",
slug="another-dummy",
product_type=pt_other,
category=category,