Upgrade wemake-python-styleguide

This commit is contained in:
Alexander Hess 2026-11-24 16:46:28 +01:00
commit 042007015f
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
6 changed files with 326 additions and 154 deletions

447
poetry.lock generated
View file

@ -110,6 +110,7 @@ description = "Read/rewrite/write Python ASTs"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "astor-0.8.1-py2.py3-none-any.whl", hash = "sha256:070a54e890cefb5b3739d19f30f5a5ec840ffc9c50ffa7d23cc9fc1a38ebbfc5"},
{file = "astor-0.8.1.tar.gz", hash = "sha256:6a6effda93f4e1ce9f618779b2dd1d9d84f1e32812c23a29b3fff6fd7f63fa5e"},
@ -139,7 +140,7 @@ files = [
{file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"},
{file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"},
]
markers = {main = "extra == \"research\""}
markers = {main = "python_version < \"3.10\" and extra == \"research\"", dev = "python_version < \"3.10\""}
[package.extras]
dev = ["coverage[toml] (>=5.0.2)", "furo", "hypothesis", "mypy", "pre-commit", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "six", "sphinx", "sphinx-notfound-page", "zope.interface"]
@ -147,6 +148,19 @@ docs = ["furo", "sphinx", "sphinx-notfound-page", "zope.interface"]
tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "mypy", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "six", "zope.interface"]
tests-no-zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "mypy", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "six"]
[[package]]
name = "attrs"
version = "26.1.0"
description = "Classes Without Boilerplate"
optional = false
python-versions = ">=3.9"
groups = ["main", "dev"]
files = [
{file = "attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309"},
{file = "attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32"},
]
markers = {main = "extra == \"research\" and python_version >= \"3.10\"", dev = "python_version >= \"3.10\""}
[[package]]
name = "autoflake"
version = "1.4"
@ -242,6 +256,7 @@ description = "Security oriented static analyser for python code."
optional = false
python-versions = ">=3.5"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "bandit-1.7.0-py3-none-any.whl", hash = "sha256:216be4d044209fa06cf2a3e51b319769a51be8318140659719aa7a115c35ed07"},
{file = "bandit-1.7.0.tar.gz", hash = "sha256:8a4c7415254d75df8ff3c3b15cfe9042ecee628a1e40b44c15a98890fbfc2608"},
@ -818,6 +833,7 @@ description = "A utility for ensuring Google-style docstrings stay up to date wi
optional = false
python-versions = ">=3.6,<4.0"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "darglint-1.8.0-py3-none-any.whl", hash = "sha256:ac6797bcc918cd8d8f14c168a4a364f54e1aeb4ced59db58e7e4c6dfec2fe15c"},
{file = "darglint-1.8.0.tar.gz", hash = "sha256:aa605ef47817a6d14797d32b390466edab621768ea4ca5cc0f3c54f6d8dcaec8"},
@ -917,13 +933,15 @@ files = [
[[package]]
name = "eradicate"
version = "1.0"
version = "2.3.0"
description = "Removes commented-out code."
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "eradicate-1.0.tar.gz", hash = "sha256:4ffda82aae6fd49dfffa777a857cb758d77502a1f2e0f54c9ac5155a39d2d01a"},
{file = "eradicate-2.3.0-py3-none-any.whl", hash = "sha256:2b29b3dd27171f209e4ddd8204b70c02f0682ae95eecb353f10e8d72b149c63e"},
{file = "eradicate-2.3.0.tar.gz", hash = "sha256:06df115be3b87d0fc1c483db22a2ebb12bcf40585722810d809cc770f5031c37"},
]
[[package]]
@ -975,35 +993,90 @@ files = [
[[package]]
name = "flake8"
version = "3.9.2"
version = "4.0.1"
description = "the modular source code checker: pep8 pyflakes and co"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7"
python-versions = ">=3.6"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-3.9.2-py2.py3-none-any.whl", hash = "sha256:bf8fd333346d844f616e8d47905ef3a3384edae6b4e9beb0c5101e25e3110907"},
{file = "flake8-3.9.2.tar.gz", hash = "sha256:07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b"},
{file = "flake8-4.0.1-py2.py3-none-any.whl", hash = "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d"},
{file = "flake8-4.0.1.tar.gz", hash = "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d"},
]
[package.dependencies]
mccabe = ">=0.6.0,<0.7.0"
pycodestyle = ">=2.7.0,<2.8.0"
pyflakes = ">=2.3.0,<2.4.0"
pycodestyle = ">=2.8.0,<2.9.0"
pyflakes = ">=2.4.0,<2.5.0"
[[package]]
name = "flake8-annotations"
version = "2.6.2"
description = "Flake8 Type Annotation Checks"
name = "flake8"
version = "7.4.1"
description = "the modular source code checker: pep8 pyflakes and co"
optional = false
python-versions = ">=3.6.1,<4.0.0"
python-versions = ">=3.10"
groups = ["dev"]
markers = "python_version == \"3.10\""
files = [
{file = "flake8-annotations-2.6.2.tar.gz", hash = "sha256:0d6cd2e770b5095f09689c9d84cc054c51b929c41a68969ea1beb4b825cac515"},
{file = "flake8_annotations-2.6.2-py3-none-any.whl", hash = "sha256:d10c4638231f8a50c0a597c4efce42bd7b7d85df4f620a0ddaca526138936a4f"},
{file = "flake8-7.4.1-py2.py3-none-any.whl", hash = "sha256:78480274a6d7289d9cb8eafeda241fac57d4ea687d26e32dfdca37b72cdeddad"},
{file = "flake8-7.4.1.tar.gz", hash = "sha256:84ea5afcaf344487b0ea5baaebb8100f4cfaebc01f755998f75876664029f587"},
]
[package.dependencies]
flake8 = ">=3.7,<4.0"
mccabe = ">=0.7.0,<0.8.0"
pycodestyle = ">=2.15.0,<2.16.0"
pyflakes = ">=4.0.0,<4.1.0"
[[package]]
name = "flake8"
version = "7.5.0"
description = "the modular source code checker: pep8 pyflakes and co"
optional = false
python-versions = ">=3.11"
groups = ["dev"]
markers = "python_version >= \"3.11\""
files = [
{file = "flake8-7.5.0-py2.py3-none-any.whl", hash = "sha256:637ea1a443a78ed6ee461725cdf71ca93bc5cde0abf25436dbebdc3880b4e078"},
{file = "flake8-7.5.0.tar.gz", hash = "sha256:0dab7566341aca0d80aa29b5812bdadf256caa6a63e6068e49ac2649918236a4"},
]
[package.dependencies]
mccabe = ">=0.7.0,<0.8.0"
pycodestyle = ">=2.15.0,<2.16.0"
pyflakes = ">=4.1.0,<4.2.0"
[[package]]
name = "flake8-annotations"
version = "2.7.0"
description = "Flake8 Type Annotation Checks"
optional = false
python-versions = ">=3.6.2,<4.0.0"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-annotations-2.7.0.tar.gz", hash = "sha256:52e53c05b0c06cac1c2dec192ea2c36e85081238add3bd99421d56f574b9479b"},
{file = "flake8_annotations-2.7.0-py3-none-any.whl", hash = "sha256:3edfbbfb58e404868834fe6ec3eaf49c139f64f0701259f707d043185545151e"},
]
[package.dependencies]
flake8 = ">=3.7,<5.0"
[[package]]
name = "flake8-annotations"
version = "2.9.1"
description = "Flake8 Type Annotation Checks"
optional = false
python-versions = ">=3.7,<4.0"
groups = ["dev"]
markers = "python_version >= \"3.10\""
files = [
{file = "flake8-annotations-2.9.1.tar.gz", hash = "sha256:11f09efb99ae63c8f9d6b492b75fe147fbc323179fddfe00b2e56eefeca42f57"},
{file = "flake8_annotations-2.9.1-py3-none-any.whl", hash = "sha256:a4385158a7a9fc8af1d8820a2f4c8d03387997006a83f5f8bfe5bc6085bdf88a"},
]
[package.dependencies]
attrs = ">=21.4"
flake8 = ">=3.7"
[[package]]
name = "flake8-bandit"
@ -1012,6 +1085,7 @@ description = "Automated security testing with bandit and flake8."
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8_bandit-2.1.2.tar.gz", hash = "sha256:687fc8da2e4a239b206af2e54a90093572a60d0954f3054e23690739b0b0de3b"},
]
@ -1041,78 +1115,87 @@ toml = "*"
[[package]]
name = "flake8-broken-line"
version = "0.2.1"
version = "0.5.0"
description = "Flake8 plugin to forbid backslashes for line breaks"
optional = false
python-versions = ">=3.6,<4.0"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-broken-line-0.2.1.tar.gz", hash = "sha256:414477070231a5aa05468d48db2742a594b53fbc1ecba28044646706a11fb861"},
{file = "flake8_broken_line-0.2.1-py3-none-any.whl", hash = "sha256:75858359e3ccd4f1d92a9e7582aa5c9e4485cbc920dd05954703900cf907667e"},
{file = "flake8-broken-line-0.5.0.tar.gz", hash = "sha256:7c98de9dd1385b71e888709c7f2aee3f0514107ecb5875bc95d0c03392191c97"},
{file = "flake8_broken_line-0.5.0-py3-none-any.whl", hash = "sha256:daafb19b67eead0410ce7ba155d51a15b9d020ebe7630d87de9c2b93cedb6703"},
]
[package.dependencies]
flake8 = ">=3.5,<4.0"
flake8 = ">=3.5,<6"
[[package]]
name = "flake8-bugbear"
version = "19.8.0"
version = "22.12.6"
description = "A plugin for flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle."
optional = false
python-versions = ">=3.5"
python-versions = ">=3.7"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-bugbear-19.8.0.tar.gz", hash = "sha256:d8c466ea79d5020cb20bf9f11cf349026e09517a42264f313d3f6fddb83e0571"},
{file = "flake8_bugbear-19.8.0-py35.py36.py37-none-any.whl", hash = "sha256:ded4d282778969b5ab5530ceba7aa1a9f1b86fa7618fc96a19a1d512331640f8"},
{file = "flake8-bugbear-22.12.6.tar.gz", hash = "sha256:4cdb2c06e229971104443ae293e75e64c6107798229202fbe4f4091427a30ac0"},
{file = "flake8_bugbear-22.12.6-py3-none-any.whl", hash = "sha256:b69a510634f8a9c298dfda2b18a8036455e6b19ecac4fe582e4d7a0abfa50a30"},
]
[package.dependencies]
attrs = "*"
attrs = ">=19.2.0"
flake8 = ">=3.0.0"
[package.extras]
dev = ["coverage", "hypothesis", "hypothesmith (>=0.2)", "pre-commit", "tox"]
[[package]]
name = "flake8-commas"
version = "2.0.0"
version = "2.1.0"
description = "Flake8 lint for trailing commas."
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-commas-2.0.0.tar.gz", hash = "sha256:d3005899466f51380387df7151fb59afec666a0f4f4a2c6a8995b975de0f44b7"},
{file = "flake8_commas-2.0.0-py2.py3-none-any.whl", hash = "sha256:ee2141a3495ef9789a3894ed8802d03eff1eaaf98ce6d8653a7c573ef101935e"},
{file = "flake8-commas-2.1.0.tar.gz", hash = "sha256:940441ab8ee544df564ae3b3f49f20462d75d5c7cac2463e0b27436e2050f263"},
{file = "flake8_commas-2.1.0-py2.py3-none-any.whl", hash = "sha256:ebb96c31e01d0ef1d0685a21f3f0e2f8153a0381430e748bf0bbbb5d5b453d54"},
]
[package.dependencies]
flake8 = ">=2,<4.0.0"
flake8 = ">=2"
[[package]]
name = "flake8-comprehensions"
version = "3.6.1"
version = "3.15.0"
description = "A flake8 plugin to help you write better list/set/dict comprehensions."
optional = false
python-versions = ">=3.6"
python-versions = ">=3.8"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-comprehensions-3.6.1.tar.gz", hash = "sha256:4888de89248b7f7535159189ff693c77f8354f6d37a02619fa28c9921a913aa0"},
{file = "flake8_comprehensions-3.6.1-py3-none-any.whl", hash = "sha256:e9a010b99aa90c05790d45281ad9953df44a4a08a1a8f6cd41f98b4fc6a268a0"},
{file = "flake8_comprehensions-3.15.0-py3-none-any.whl", hash = "sha256:b7e027bbb52be2ceb779ee12484cdeef52b0ad3c1fcb8846292bdb86d3034681"},
{file = "flake8_comprehensions-3.15.0.tar.gz", hash = "sha256:923c22603e0310376a6b55b03efebdc09753c69f2d977755cba8bb73458a5d4d"},
]
[package.dependencies]
flake8 = ">=3.0,!=3.2.0,<4"
flake8 = ">=3,!=3.2"
[[package]]
name = "flake8-debugger"
version = "3.2.1"
version = "4.1.2"
description = "ipdb/pdb statement checker plugin for flake8"
optional = false
python-versions = "*"
python-versions = ">=3.7"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-debugger-3.2.1.tar.gz", hash = "sha256:712d7c1ff69ddf3f0130e94cc88c2519e720760bce45e8c330bfdcb61ab4090d"},
{file = "flake8-debugger-4.1.2.tar.gz", hash = "sha256:52b002560941e36d9bf806fca2523dc7fb8560a295d5f1a6e15ac2ded7a73840"},
{file = "flake8_debugger-4.1.2-py3-none-any.whl", hash = "sha256:0a5e55aeddcc81da631ad9c8c366e7318998f83ff00985a49e6b3ecf61e571bf"},
]
[package.dependencies]
flake8 = ">=1.5"
flake8 = ">=3.0"
pycodestyle = "*"
[[package]]
@ -1122,6 +1205,7 @@ description = "Extension for flake8 which uses pydocstyle to check docstrings"
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-docstrings-1.6.0.tar.gz", hash = "sha256:9fe7c6a306064af8e62a055c2f61e9eb1da55f84bb39caef2b84ce53708ac34b"},
{file = "flake8_docstrings-1.6.0-py2.py3-none-any.whl", hash = "sha256:99cac583d6c7e32dd28bbfbef120a7c0d1b6dde4adb5a9fd441c4227a6534bde"},
@ -1133,40 +1217,41 @@ pydocstyle = ">=2.1"
[[package]]
name = "flake8-eradicate"
version = "0.3.0"
version = "1.4.0"
description = "Flake8 plugin to find commented out code"
optional = false
python-versions = ">=3.6,<4.0"
python-versions = ">=3.7,<4.0"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-eradicate-0.3.0.tar.gz", hash = "sha256:d0b3d283d85079917acbfe39b9d637385cd82cba3ae3d76c1278c07ddcf0d9b9"},
{file = "flake8_eradicate-0.3.0-py3-none-any.whl", hash = "sha256:e8b32b32300bfb407fe7ef74667c8d2d3a6a81bdf6f09c14a7bcc82b7b870f8b"},
{file = "flake8-eradicate-1.4.0.tar.gz", hash = "sha256:3088cfd6717d1c9c6c3ac45ef2e5f5b6c7267f7504d5a74b781500e95cb9c7e1"},
{file = "flake8_eradicate-1.4.0-py3-none-any.whl", hash = "sha256:e3bbd0871be358e908053c1ab728903c114f062ba596b4d40c852fd18f473d56"},
]
[package.dependencies]
attrs = "*"
eradicate = ">=1.0,<2.0"
flake8 = ">=3.5,<4.0"
eradicate = ">=2.0,<3.0"
flake8 = ">=3.5,<6"
[[package]]
name = "flake8-isort"
version = "3.0.1"
version = "4.2.0"
description = "flake8 plugin that integrates isort ."
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-isort-3.0.1.tar.gz", hash = "sha256:5d976da513cc390232ad5a9bb54aee8a092466a15f442d91dfc525834bee727a"},
{file = "flake8_isort-3.0.1-py2.py3-none-any.whl", hash = "sha256:df1dd6dd73f6a8b128c9c783356627231783cccc82c13c6dc343d1a5a491699b"},
{file = "flake8-isort-4.2.0.tar.gz", hash = "sha256:26571500cd54976bbc0cf1006ffbcd1a68dd102f816b7a1051b219616ba9fee0"},
{file = "flake8_isort-4.2.0-py3-none-any.whl", hash = "sha256:5b87630fb3719bf4c1833fd11e0d9534f43efdeba524863e15d8f14a7ef6adbf"},
]
[package.dependencies]
flake8 = ">=3.2.1,<4"
isort = {version = ">=4.3.5,<5", extras = ["pyproject"]}
testfixtures = ">=6.8.0,<7"
flake8 = ">=3.2.1,<6"
isort = ">=4.3.5,<6"
[package.extras]
test = ["pytest (>=4.0.2,<6)"]
test = ["pytest-cov"]
[[package]]
name = "flake8-plugin-utils"
@ -1187,6 +1272,7 @@ description = "Polyfill package for Flake8 plugins"
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-polyfill-1.0.2.tar.gz", hash = "sha256:e44b087597f6da52ec6393a709e7108b2905317d0c0b744cdca6208e670d8eda"},
{file = "flake8_polyfill-1.0.2-py2.py3-none-any.whl", hash = "sha256:12be6a34ee3ab795b19ca73505e7b55826d5f6ad7230d31b18e106400169b9e9"},
@ -1212,43 +1298,49 @@ flake8-plugin-utils = ">=1.3.2,<2.0.0"
[[package]]
name = "flake8-quotes"
version = "2.1.2"
version = "3.4.0"
description = "Flake8 lint for quotes."
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-quotes-2.1.2.tar.gz", hash = "sha256:c844c9592940c8926c60f00bc620808912ff2acd34923ab5338f3a5ca618a331"},
{file = "flake8-quotes-3.4.0.tar.gz", hash = "sha256:aad8492fb710a2d3eabe68c5f86a1428de650c8484127e14c43d0504ba30276c"},
]
[package.dependencies]
flake8 = "*"
setuptools = "*"
[[package]]
name = "flake8-rst-docstrings"
version = "0.0.12"
version = "0.2.7"
description = "Python docstring reStructuredText (RST) validator"
optional = false
python-versions = "*"
python-versions = ">=3.7"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-rst-docstrings-0.0.12.tar.gz", hash = "sha256:01d38327801781b26c3dfeb71ae37e5a02c5ca1b774a686f63feab8824ca6f9c"},
{file = "flake8-rst-docstrings-0.2.7.tar.gz", hash = "sha256:2740067ab9237559dd45a3434d8c987792c7b259ca563621a3b95efe201f5382"},
{file = "flake8_rst_docstrings-0.2.7-py3-none-any.whl", hash = "sha256:5d56075dce360bcc9c6775bfe7cb431aa395de600ca7e8d40580a28d50b2a803"},
]
[package.dependencies]
flake8 = ">=3.0.0"
restructuredtext_lint = "*"
pygments = "*"
restructuredtext-lint = "*"
[[package]]
name = "flake8-string-format"
version = "0.2.3"
version = "0.3.0"
description = "string format checker, plugin for flake8"
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "flake8-string-format-0.2.3.tar.gz", hash = "sha256:774d56103d9242ed968897455ef49b7d6de272000cfa83de5814273a868832f1"},
{file = "flake8_string_format-0.2.3-py2.py3-none-any.whl", hash = "sha256:68ea72a1a5b75e7018cae44d14f32473c798cf73d75cbaed86c6a9a907b770b2"},
{file = "flake8-string-format-0.3.0.tar.gz", hash = "sha256:65f3da786a1461ef77fca3780b314edb2853c377f2e35069723348c8917deaa2"},
{file = "flake8_string_format-0.3.0-py2.py3-none-any.whl", hash = "sha256:812ff431f10576a74c89be4e85b8e075a705be39bc40c4b4278b5b13e2afa9af"},
]
[package.dependencies]
@ -1597,6 +1689,7 @@ description = "Git Object Database"
optional = false
python-versions = ">=3.4"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "gitdb-4.0.7-py3-none-any.whl", hash = "sha256:6c4cc71933456991da20917998acbe6cf4fb41eeaab7d6d67fbc05ecd4c865b0"},
{file = "gitdb-4.0.7.tar.gz", hash = "sha256:96bf5c08b157a666fec41129e6d327235284cca4c81e92109260f353ba138005"},
@ -1612,6 +1705,7 @@ description = "GitPython is a python library used to interact with Git repositor
optional = false
python-versions = ">=3.7"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "GitPython-3.1.23-py3-none-any.whl", hash = "sha256:de2e2aff068097b23d6dca5daf588078fd8996a4218f6ffa704a662c2b54f9ac"},
{file = "GitPython-3.1.23.tar.gz", hash = "sha256:aaae7a3bfdf0a6db30dc1f3aeae47b71cd326d86b936fe2e158aa925fdf1471c"},
@ -1880,9 +1974,6 @@ files = [
{file = "isort-4.3.21.tar.gz", hash = "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1"},
]
[package.dependencies]
toml = {version = "*", optional = true, markers = "extra == \"pyproject\""}
[package.extras]
pipfile = ["pipreqs", "requirementslib"]
pyproject = ["toml"]
@ -2471,11 +2562,25 @@ description = "McCabe checker, plugin for flake8"
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"},
{file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"},
]
[[package]]
name = "mccabe"
version = "0.7.0"
description = "McCabe checker, plugin for flake8"
optional = false
python-versions = ">=3.6"
groups = ["dev"]
markers = "python_version >= \"3.10\""
files = [
{file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"},
{file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"},
]
[[package]]
name = "mistune"
version = "0.8.4"
@ -3049,18 +3154,19 @@ files = [
[[package]]
name = "pep8-naming"
version = "0.9.1"
version = "0.13.2"
description = "Check PEP-8 naming conventions, plugin for flake8"
optional = false
python-versions = "*"
python-versions = ">=3.7"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "pep8-naming-0.9.1.tar.gz", hash = "sha256:a33d38177056321a167decd6ba70b890856ba5025f0a8eca6a3eda607da93caf"},
{file = "pep8_naming-0.9.1-py2.py3-none-any.whl", hash = "sha256:45f330db8fcfb0fba57458c77385e288e7a3be1d01e8ea4268263ef677ceea5f"},
{file = "pep8-naming-0.13.2.tar.gz", hash = "sha256:93eef62f525fd12a6f8c98f4dcc17fa70baae2f37fa1f73bec00e3e44392fa48"},
{file = "pep8_naming-0.13.2-py3-none-any.whl", hash = "sha256:59e29e55c478db69cffbe14ab24b5bd2cd615c0413edf790d47d3fb7ba9a4e23"},
]
[package.dependencies]
flake8-polyfill = ">=1.0.2,<2"
flake8 = ">=3.9.1"
[[package]]
name = "pexpect"
@ -3389,14 +3495,28 @@ markers = {main = "extra == \"research\" and implementation_name == \"pypy\""}
[[package]]
name = "pycodestyle"
version = "2.7.0"
version = "2.8.0"
description = "Python style guide checker"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "pycodestyle-2.7.0-py2.py3-none-any.whl", hash = "sha256:514f76d918fcc0b55c6680472f0a37970994e07bbb80725808c17089be302068"},
{file = "pycodestyle-2.7.0.tar.gz", hash = "sha256:c389c1d06bf7904078ca03399a4816f974a1d590090fecea0c63ec26ebaf1cef"},
{file = "pycodestyle-2.8.0-py2.py3-none-any.whl", hash = "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20"},
{file = "pycodestyle-2.8.0.tar.gz", hash = "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f"},
]
[[package]]
name = "pycodestyle"
version = "2.15.0"
description = "Python style guide checker"
optional = false
python-versions = ">=3.10"
groups = ["dev"]
markers = "python_version >= \"3.10\""
files = [
{file = "pycodestyle-2.15.0-py2.py3-none-any.whl", hash = "sha256:12fd2f73c7b8ee8845a0431111df8faf4c1a07d6e64e2ee7f0c74014dab14181"},
{file = "pycodestyle-2.15.0.tar.gz", hash = "sha256:318f5db083869b4c4dad922d0b11124fb27ab181b6730b93371da671e31bd50e"},
]
[[package]]
@ -3418,6 +3538,7 @@ description = "Python docstring style checker"
optional = false
python-versions = ">=3.6"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "pydocstyle-6.1.1-py3-none-any.whl", hash = "sha256:6987826d6775056839940041beef5c08cc7e3d71d63149b48e36727f70144dc4"},
{file = "pydocstyle-6.1.1.tar.gz", hash = "sha256:1d41b7c459ba0ee6c345f2eb9ae827cab14a7533a88c5c6f7e94923f72df92dc"},
@ -3431,14 +3552,41 @@ toml = ["toml"]
[[package]]
name = "pyflakes"
version = "2.3.1"
version = "2.4.0"
description = "passive checker of Python programs"
optional = false
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "pyflakes-2.3.1-py2.py3-none-any.whl", hash = "sha256:7893783d01b8a89811dd72d7dfd4d84ff098e5eed95cfa8905b22bbffe52efc3"},
{file = "pyflakes-2.3.1.tar.gz", hash = "sha256:f5bc8ecabc05bb9d291eb5203d6810b49040f6ff446a756326104746cc00c1db"},
{file = "pyflakes-2.4.0-py2.py3-none-any.whl", hash = "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e"},
{file = "pyflakes-2.4.0.tar.gz", hash = "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"},
]
[[package]]
name = "pyflakes"
version = "4.0.3"
description = "passive checker of Python programs"
optional = false
python-versions = ">=3.10"
groups = ["dev"]
markers = "python_version == \"3.10\""
files = [
{file = "pyflakes-4.0.3-py2.py3-none-any.whl", hash = "sha256:330ba92b8c1db2eb0b8f4068f6c58674e2649a99e334769aa50e3e9c5b11c23a"},
{file = "pyflakes-4.0.3.tar.gz", hash = "sha256:94762a3a5a343a79b28754f96c554bce057a592a4896907d73f0369fe824e053"},
]
[[package]]
name = "pyflakes"
version = "4.1.0"
description = "passive checker of Python programs"
optional = false
python-versions = ">=3.11"
groups = ["dev"]
markers = "python_version >= \"3.11\""
files = [
{file = "pyflakes-4.1.0-py2.py3-none-any.whl", hash = "sha256:b2e05e6bac8e49b67be2a6ffa63422c60f7193fc72e8180255907b41ec997dc1"},
{file = "pyflakes-4.1.0.tar.gz", hash = "sha256:592beb57058eb82eb190fb7514f2081c555c51000b029ff71286a681e6cf2f83"},
]
[[package]]
@ -3452,7 +3600,23 @@ files = [
{file = "Pygments-2.10.0-py3-none-any.whl", hash = "sha256:b8e67fe6af78f492b3c4b3e2970c0624cbf08beb1e493b2c99b9fa1b67a20380"},
{file = "Pygments-2.10.0.tar.gz", hash = "sha256:f398865f7eb6874156579fdf36bc840a03cab64d1cde9e93d68f46a425ec52c6"},
]
markers = {main = "extra == \"research\""}
markers = {main = "python_version < \"3.10\" and extra == \"research\"", dev = "python_version < \"3.10\""}
[[package]]
name = "pygments"
version = "2.21.0"
description = "Pygments is a syntax highlighting package written in Python."
optional = false
python-versions = ">=3.9"
groups = ["main", "dev"]
files = [
{file = "pygments-2.21.0-py3-none-any.whl", hash = "sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9"},
{file = "pygments-2.21.0.tar.gz", hash = "sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c"},
]
markers = {main = "extra == \"research\" and python_version >= \"3.10\"", dev = "python_version >= \"3.10\""}
[package.extras]
windows-terminal = ["colorama (>=0.4.6)"]
[[package]]
name = "pyparsing"
@ -3827,6 +3991,7 @@ description = "reStructuredText linter"
optional = false
python-versions = "*"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "restructuredtext_lint-1.3.2.tar.gz", hash = "sha256:d3b10a1fe2ecac537e51ae6d151b223b78de9fafdd50e5eb6b08c243df173c80"},
]
@ -4293,6 +4458,7 @@ description = "A pure Python implementation of a sliding window memory map manag
optional = false
python-versions = ">=3.5"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "smmap-4.0.0-py2.py3-none-any.whl", hash = "sha256:a9a7479e4c572e2e775c404dcd3080c8dc49f39918c2cf74913d30c4c478e3c2"},
{file = "smmap-4.0.0.tar.gz", hash = "sha256:7e65386bd122d45405ddf795637b7f7d2b532e7e401d46bbe3fb49b9986d5182"},
@ -4665,32 +4831,6 @@ files = [
[package.dependencies]
pbr = ">=2.0.0"
[[package]]
name = "stevedore"
version = "5.8.0"
description = "Manage dynamic plugins for Python applications"
optional = false
python-versions = ">=3.10"
groups = ["dev"]
markers = "python_version == \"3.10\""
files = [
{file = "stevedore-5.8.0-py3-none-any.whl", hash = "sha256:88eede9e66ca80e34085b9174e2327da2c61ac91f24f70e41c3ad76e4bb4872b"},
{file = "stevedore-5.8.0.tar.gz", hash = "sha256:b49867b32ca3016e94100e68dbf26e72aa7b8708d0a3f73c08aeb220370ac715"},
]
[[package]]
name = "stevedore"
version = "5.10.0"
description = "Manage dynamic plugins for Python applications"
optional = false
python-versions = ">=3.11"
groups = ["dev"]
markers = "python_version >= \"3.11\""
files = [
{file = "stevedore-5.10.0-py3-none-any.whl", hash = "sha256:47c48dc09e75933106c1bba0a7690eef3b5acecdb807df6d47cc40b2532fa927"},
{file = "stevedore-5.10.0.tar.gz", hash = "sha256:6005f32c09dc3159802a61c04862770e439e32db22f6da78ba56e8a735466882"},
]
[[package]]
name = "terminado"
version = "0.12.1"
@ -4712,23 +4852,6 @@ tornado = ">=4"
[package.extras]
test = ["pytest"]
[[package]]
name = "testfixtures"
version = "6.18.1"
description = "A collection of helpers and mock objects for unit tests and doc tests."
optional = false
python-versions = "*"
groups = ["dev"]
files = [
{file = "testfixtures-6.18.1-py2.py3-none-any.whl", hash = "sha256:486be7b01eb71326029811878a3317b7e7994324621c0ec633c8e24499d8d5b3"},
{file = "testfixtures-6.18.1.tar.gz", hash = "sha256:0a6422737f6d89b45cdef1e2df5576f52ad0f507956002ce1020daa9f44211d6"},
]
[package.extras]
build = ["setuptools-git", "twine", "wheel"]
docs = ["django (<2) ; python_version < \"3\"", "django ; python_version >= \"3\"", "mock ; python_version < \"3\"", "sphinx", "sybil", "twisted", "zope.component"]
test = ["django (<2) ; python_version < \"3\"", "django ; python_version >= \"3\"", "mock ; python_version < \"3\"", "pytest (>=3.6)", "pytest-cov", "pytest-django", "sybil", "twisted", "zope.component"]
[[package]]
name = "testpath"
version = "0.5.0"
@ -4879,15 +5002,28 @@ files = [
[[package]]
name = "typing-extensions"
version = "3.10.0.2"
description = "Backported and Experimental Type Hints for Python 3.5+"
version = "4.13.2"
description = "Backported and Experimental Type Hints for Python 3.8+"
optional = false
python-versions = "*"
python-versions = ">=3.8"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "typing_extensions-3.10.0.2-py2-none-any.whl", hash = "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7"},
{file = "typing_extensions-3.10.0.2-py3-none-any.whl", hash = "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34"},
{file = "typing_extensions-3.10.0.2.tar.gz", hash = "sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e"},
{file = "typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c"},
{file = "typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef"},
]
[[package]]
name = "typing-extensions"
version = "4.16.0"
description = "Backported and Experimental Type Hints for Python 3.9+"
optional = false
python-versions = ">=3.9"
groups = ["dev"]
markers = "python_version >= \"3.10\""
files = [
{file = "typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8"},
{file = "typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5"},
]
[[package]]
@ -5001,36 +5137,59 @@ files = [
[[package]]
name = "wemake-python-styleguide"
version = "0.14.1"
version = "0.17.0"
description = "The strictest and most opinionated python linter ever"
optional = false
python-versions = ">=3.6,<4.0"
python-versions = ">=3.7,<4.0"
groups = ["dev"]
markers = "python_version < \"3.10\""
files = [
{file = "wemake-python-styleguide-0.14.1.tar.gz", hash = "sha256:e13dc580fa56b7b548de8da170bccb8ddff2d4ab026ca987db8a9893bf8a7b5b"},
{file = "wemake_python_styleguide-0.14.1-py3-none-any.whl", hash = "sha256:73a501e0547275287a2b926515c000cc25026a8bceb9dcc1bf73ef85a223a3c6"},
{file = "wemake-python-styleguide-0.17.0.tar.gz", hash = "sha256:c8869fac392019c2bb3eae4287399245d10d2726b23f1b3c68d1564909c3a71a"},
{file = "wemake_python_styleguide-0.17.0-py3-none-any.whl", hash = "sha256:d10b953bbe4fba83a34f4c224a0e1849ede89e486eacfc760690e6c87a28eaae"},
]
[package.dependencies]
astor = ">=0.8,<0.9"
attrs = "*"
darglint = ">=1.2,<2.0"
flake8 = ">=3.7,<4.0"
flake8-bandit = ">=2.1,<3.0"
flake8-broken-line = ">=0.2,<0.3"
flake8-bugbear = ">=19.3,<20.0"
flake8 = ">=3.7,<5"
flake8-bandit = ">=2.1,<4"
flake8-broken-line = ">=0.5,<0.6"
flake8-bugbear = ">=22.9,<23.0"
flake8-commas = ">=2.0,<3.0"
flake8-comprehensions = ">=3.1.0,<4.0.0"
flake8-debugger = ">=3.1,<4.0"
flake8-docstrings = ">=1.3.1,<2.0.0"
flake8-eradicate = ">=0.3,<0.4"
flake8-isort = ">=3.0.1,<4"
flake8-quotes = ">=2.0.1,<3.0.0"
flake8-rst-docstrings = ">=0.0.12,<0.0.13"
flake8-string-format = ">=0.2,<0.3"
pep8-naming = ">=0.9.1,<0.10.0"
flake8-comprehensions = ">=3.1,<4.0"
flake8-debugger = ">=4.0,<5.0"
flake8-docstrings = ">=1.3,<2.0"
flake8-eradicate = ">=1.0,<2.0"
flake8-isort = ">=4.0,<5.0"
flake8-quotes = ">=3.0,<4.0"
flake8-rst-docstrings = ">=0.2,<0.3"
flake8-string-format = ">=0.3,<0.4"
pep8-naming = ">=0.13,<0.14"
pygments = ">=2.4,<3.0"
typing_extensions = ">=3.6,<4.0"
typing_extensions = ">=4.0,<5.0"
[[package]]
name = "wemake-python-styleguide"
version = "1.9.0"
description = "The strictest and most opinionated python linter ever!"
optional = false
python-versions = "<4.0,>=3.10"
groups = ["dev"]
markers = "python_version >= \"3.10\""
files = [
{file = "wemake_python_styleguide-1.9.0-py3-none-any.whl", hash = "sha256:39a252ca693897dc014338d6afd4004dd73985e42399a00c719e48b07631ba57"},
{file = "wemake_python_styleguide-1.9.0.tar.gz", hash = "sha256:42d474e9d248f12f28f39b64ec37173e98010626ef2a13ef7f66236550c2f82e"},
]
[package.dependencies]
attrs = "*"
flake8 = ">=7.3,<8.0"
pygments = ">=2.19"
typing-extensions = ">=4"
[package.extras]
mcp = ["mcp[cli] (>=2.0,<3.0)"]
[[package]]
name = "xdoctest"
@ -5089,4 +5248,4 @@ research = ["jupyterlab", "numpy", "pytz"]
[metadata]
lock-version = "2.1"
python-versions = ">=3.8,<4.0"
content-hash = "c4addcab1e1dcc8cdd5aaeb6d1c18d30516fe1f28577cb4c79d8035556541617"
content-hash = "72788861fbc77160ce8389a56c8943385da4ec72eef974e79b7bb3b53bb4e26a"

View file

@ -90,12 +90,12 @@ black = "^19.10b0"
isort = "^4.3.21" # TODO (isort): Not ^5.5.4 due to `wemake-python-styleguide`
# Code Analyzers
flake8 = "^3.8.3"
flake8 = ">=3.8.3"
flake8-annotations = "^2.3.0"
flake8-black = "^0.2.1"
flake8-pytest-style = "^1.2.2"
mypy = "^0.782"
wemake-python-styleguide = "^0.14.1" # `flake8` plug-in
wemake-python-styleguide = ">=0.14.1" # `flake8` plug-in
# Test Suite
Faker = "^5.0.1"

View file

@ -82,6 +82,16 @@ ignore =
# If --ignore is passed on the command
# line, still ignore the following:
extend-ignore =
# TODO: New in `wemake-python-styleguide` v0.15 - v0.17, revisit in the tooling goal
WPS110,
WPS237,
WPS238,
WPS358,
WPS456,
WPS458,
WPS459,
WPS462,
WPS469,
# Too long line => duplicate with E501.
B950,
# Comply with black's style.

View file

@ -49,11 +49,12 @@ def vertical_datetime_index():
`frequency` of `7` times the number of daily time steps,
which is `12` for `LONG_TIME_STEP` values.
"""
start_ats = pd.date_range(
test_config.START, test_config.END, freq=f'{test_config.LONG_TIME_STEP}T',
)
gen = (
start_at
for start_at in pd.date_range(
test_config.START, test_config.END, freq=f'{test_config.LONG_TIME_STEP}T',
)
for start_at in start_ats
if config.SERVICE_START <= start_at.hour < config.SERVICE_END
)
@ -101,12 +102,13 @@ def order_totals(good_pixel_id):
"""
pixel_ids = [good_pixel_id, good_pixel_id + 1]
start_ats = pd.date_range(
test_config.START, test_config.END, freq=f'{test_config.LONG_TIME_STEP}T',
)
gen = (
(pixel_id, start_at)
for pixel_id in pixel_ids
for start_at in pd.date_range(
test_config.START, test_config.END, freq=f'{test_config.LONG_TIME_STEP}T',
)
for start_at in start_ats
if config.SERVICE_START <= start_at.hour < config.SERVICE_END
)

View file

@ -27,11 +27,12 @@ def forecast_interval():
future_day.year, future_day.month, future_day.day, config.SERVICE_END, 0,
)
start_ats = pd.date_range(
first_start_at, end_of_day, freq=f'{test_config.LONG_TIME_STEP}T',
)
gen = (
start_at
for start_at in pd.date_range(
first_start_at, end_of_day, freq=f'{test_config.LONG_TIME_STEP}T',
)
for start_at in start_ats
if config.SERVICE_START <= start_at.hour < config.SERVICE_END
)

View file

@ -131,7 +131,7 @@ class TestChooseTacticalModel:
def test_best_model_for_unknown_train_horizon(
self, order_history, good_pixel_id, predict_at, # noqa:RST215
):
"""For `train_horizon`s not included in the rule-based system ...
"""For `train_horizon` values not included in the rule-based system ...
... the method raises a `RuntimeError`.
"""