From 2f085f7450e938991eaa4231502686e40d5c3d72 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Wed, 25 Nov 2026 12:39:01 +0100 Subject: [PATCH] Upgrade flake8 --- poetry.lock | 123 +++++++++++++++++++------------------------------ pyproject.toml | 2 +- 2 files changed, 49 insertions(+), 76 deletions(-) diff --git a/poetry.lock b/poetry.lock index 1648698..3ddb500 100644 --- a/poetry.lock +++ b/poetry.lock @@ -221,18 +221,18 @@ markers = {main = "extra == \"research\""} [[package]] name = "autoflake" -version = "1.7.8" +version = "1.7.7" description = "Removes unused imports and unused variables" optional = false python-versions = ">=3.7" groups = ["dev"] files = [ - {file = "autoflake-1.7.8-py3-none-any.whl", hash = "sha256:46373ef69b6714f5064c923bb28bd797c4f8a9497f557d87fc36665c6d956b39"}, - {file = "autoflake-1.7.8.tar.gz", hash = "sha256:e7e46372dee46fa1c97acf310d99d922b63d369718a270809d7c278d34a194cf"}, + {file = "autoflake-1.7.7-py3-none-any.whl", hash = "sha256:a9b43d08f8e455824e4f7b3f078399f59ba538ba53872f466c09e55c827773ef"}, + {file = "autoflake-1.7.7.tar.gz", hash = "sha256:c8e4fc41aa3eae0f5c94b939e3a3d50923d7a9306786a6cbf4866a077b8f6832"}, ] [package.dependencies] -pyflakes = ">=1.1.0,<3" +pyflakes = ">=1.1.0" [[package]] name = "babel" @@ -1154,20 +1154,20 @@ files = [ [[package]] name = "flake8" -version = "4.0.1" +version = "7.5.0" description = "the modular source code checker: pep8 pyflakes and co" optional = false -python-versions = ">=3.6" +python-versions = ">=3.11" groups = ["dev"] files = [ - {file = "flake8-4.0.1-py2.py3-none-any.whl", hash = "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d"}, - {file = "flake8-4.0.1.tar.gz", hash = "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d"}, + {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.6.0,<0.7.0" -pycodestyle = ">=2.8.0,<2.9.0" -pyflakes = ">=2.4.0,<2.5.0" +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" @@ -2545,14 +2545,14 @@ test = ["flake8", "matplotlib", "nbdime", "nbval", "notebook", "pytest"] [[package]] name = "mccabe" -version = "0.6.1" +version = "0.7.0" description = "McCabe checker, plugin for flake8" optional = false -python-versions = "*" +python-versions = ">=3.6" groups = ["dev"] files = [ - {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"}, - {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"}, + {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, + {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, ] [[package]] @@ -3324,14 +3324,14 @@ tests = ["pytest"] [[package]] name = "pycodestyle" -version = "2.8.0" +version = "2.15.0" description = "Python style guide checker" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=3.10" groups = ["dev"] files = [ - {file = "pycodestyle-2.8.0-py2.py3-none-any.whl", hash = "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20"}, - {file = "pycodestyle-2.8.0.tar.gz", hash = "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f"}, + {file = "pycodestyle-2.15.0-py2.py3-none-any.whl", hash = "sha256:12fd2f73c7b8ee8845a0431111df8faf4c1a07d6e64e2ee7f0c74014dab14181"}, + {file = "pycodestyle-2.15.0.tar.gz", hash = "sha256:318f5db083869b4c4dad922d0b11124fb27ab181b6730b93371da671e31bd50e"}, ] [[package]] @@ -3349,14 +3349,14 @@ markers = {main = "implementation_name != \"PyPy\"", dev = "implementation_name [[package]] name = "pyflakes" -version = "2.4.0" +version = "4.1.0" description = "passive checker of Python programs" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +python-versions = ">=3.11" groups = ["dev"] files = [ - {file = "pyflakes-2.4.0-py2.py3-none-any.whl", hash = "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e"}, - {file = "pyflakes-2.4.0.tar.gz", hash = "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"}, + {file = "pyflakes-4.1.0-py2.py3-none-any.whl", hash = "sha256:b2e05e6bac8e49b67be2a6ffa63422c60f7193fc72e8180255907b41ec997dc1"}, + {file = "pyflakes-4.1.0.tar.gz", hash = "sha256:592beb57058eb82eb190fb7514f2081c555c51000b029ff71286a681e6cf2f83"}, ] [[package]] @@ -4944,50 +4944,6 @@ docs = ["Sphinx (>=6.0)", "myst-parser (>=2.0.0)", "sphinx_rtd_theme (>=1.1.0)"] optional = ["python-socks", "wsaccel"] test = ["pytest", "websockets"] -[[package]] -name = "xdoctest" -version = "1.3.0" -description = "A rewrite of the builtin doctest module" -optional = false -python-versions = ">=3.8" -groups = ["dev"] -markers = "python_version >= \"3.14\"" -files = [ - {file = "xdoctest-1.3.0-py3-none-any.whl", hash = "sha256:b546accaecae2fd0a14e8d8e125550832f3f11981629324519d057e218dd348f"}, - {file = "xdoctest-1.3.0.tar.gz", hash = "sha256:f92cb99a3be6011c57bb94613a26b09a268e0095e926b4559132d135d8f6c9d4"}, -] - -[package.dependencies] -attrs = {version = ">=19.2.0", optional = true, markers = "extra == \"optional\""} -colorama = {version = ">=0.4.1", optional = true, markers = "platform_system == \"Windows\" and extra == \"optional\""} -debugpy = {version = ">=1.6.0", optional = true, markers = "python_version >= \"3.10\" and extra == \"optional\""} -ipykernel = {version = ">=6.11.0", optional = true, markers = "python_version < \"4.0\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\") and extra == \"optional\""} -IPython = {version = ">=7.23.1", optional = true, markers = "extra == \"optional\""} -ipython_genutils = {version = ">=0.2.0", optional = true, markers = "platform_python_implementation != \"PyPy\" and extra == \"optional\""} -jedi = {version = ">=0.16", optional = true, markers = "extra == \"optional\""} -jinja2 = {version = ">=3.0.0", optional = true, markers = "platform_python_implementation != \"PyPy\" and extra == \"optional\""} -jupyter_client = {version = ">=7.0.0", optional = true, markers = "extra == \"optional\""} -jupyter_core = {version = ">=4.7.0", optional = true, markers = "extra == \"optional\""} -nbconvert = {version = ">=6.1.0", optional = true, markers = "python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\" and extra == \"optional\""} -pyflakes = {version = ">=2.2.0", optional = true, markers = "extra == \"optional\""} -Pygments = {version = ">=2.15.1", optional = true, markers = "extra == \"optional\""} - -[package.extras] -all = ["IPython (>=7.23.1)", "Pygments (>=2.15.1)", "attrs (>=19.2.0)", "colorama (>=0.4.1) ; platform_system == \"Windows\"", "debugpy (>=1.0.0) ; python_version == \"3.8\"", "debugpy (>=1.3.0) ; python_version == \"3.9\"", "debugpy (>=1.6.0) ; python_version >= \"3.10\"", "ipykernel (>=6.0.0) ; python_version < \"3.12\" and python_version >= \"3.7\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipykernel (>=6.11.0) ; python_version < \"4.0\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipython_genutils (>=0.2.0) ; platform_python_implementation != \"PyPy\"", "jedi (>=0.16)", "jinja2 (>=3.0.0) ; platform_python_implementation != \"PyPy\"", "jupyter_client (>=7.0.0)", "jupyter_core (>=4.7.0)", "nbconvert (>=6.1.0) ; python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\"", "pyflakes (>=2.2.0)", "pytest (>=4.6.0) ; python_version < \"3.10.0\" and python_version >= \"3.7.0\"", "pytest (>=6.2.5) ; python_version >= \"3.10.0\"", "pytest-cov (>=3.0.0)", "tomli (>=0.2.0) ; python_version < \"3.11.0\" and python_version >= \"3.6\""] -all-strict = ["IPython (==7.23.1)", "Pygments (==2.15.1)", "attrs (==19.2.0)", "colorama (==0.4.1) ; platform_system == \"Windows\"", "debugpy (==1.0.0) ; python_version == \"3.8\"", "debugpy (==1.3.0) ; python_version == \"3.9\"", "debugpy (==1.6.0) ; python_version >= \"3.10\"", "ipykernel (==6.0.0) ; python_version < \"3.12\" and python_version >= \"3.7\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipykernel (==6.11.0) ; python_version < \"4.0\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipython_genutils (==0.2.0) ; platform_python_implementation != \"PyPy\"", "jedi (==0.16)", "jinja2 (==3.0.0) ; platform_python_implementation != \"PyPy\"", "jupyter_client (==7.0.0)", "jupyter_core (==4.7.0)", "nbconvert (==6.1.0) ; python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\"", "pyflakes (==2.2.0)", "pytest (==4.6.0) ; python_version < \"3.10.0\" and python_version >= \"3.7.0\"", "pytest (==6.2.5) ; python_version >= \"3.10.0\"", "pytest-cov (==3.0.0)", "tomli (==0.2.0) ; python_version < \"3.11.0\" and python_version >= \"3.6\""] -colors = ["Pygments (>=2.15.1)", "colorama (>=0.4.1) ; platform_system == \"Windows\""] -colors-strict = ["Pygments (==2.15.1)", "colorama (==0.4.1) ; platform_system == \"Windows\""] -docs = ["Pygments (>=2.15.1)", "myst_parser (>=0.18.0)", "sphinx (>=5.0.1)", "sphinx-autoapi (>=1.8.4)", "sphinx-autobuild (>=2021.3.14)", "sphinx-reredirects (>=0.0.1)", "sphinx_rtd_theme (>=1.0.0)", "sphinxcontrib-napoleon (>=0.7)"] -docs-strict = ["Pygments (==2.15.1)", "myst_parser (==0.18.0)", "sphinx (==5.0.1)", "sphinx-autoapi (==1.8.4)", "sphinx-autobuild (==2021.3.14)", "sphinx-reredirects (==0.0.1)", "sphinx_rtd_theme (==1.0.0)", "sphinxcontrib-napoleon (==0.7)"] -jupyter = ["IPython (>=7.23.1)", "attrs (>=19.2.0)", "debugpy (>=1.0.0) ; python_version == \"3.8\"", "debugpy (>=1.3.0) ; python_version == \"3.9\"", "debugpy (>=1.6.0) ; python_version >= \"3.10\"", "ipykernel (>=6.0.0) ; python_version < \"3.12\" and python_version >= \"3.7\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipykernel (>=6.11.0) ; python_version < \"4.0\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipython_genutils (>=0.2.0) ; platform_python_implementation != \"PyPy\"", "jedi (>=0.16)", "jinja2 (>=3.0.0) ; platform_python_implementation != \"PyPy\"", "jupyter_client (>=7.0.0)", "jupyter_core (>=4.7.0)", "nbconvert (>=6.1.0) ; python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\""] -jupyter-strict = ["IPython (==7.23.1)", "attrs (==19.2.0)", "debugpy (==1.0.0) ; python_version == \"3.8\"", "debugpy (==1.3.0) ; python_version == \"3.9\"", "debugpy (==1.6.0) ; python_version >= \"3.10\"", "ipykernel (==6.0.0) ; python_version < \"3.12\" and python_version >= \"3.7\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipykernel (==6.11.0) ; python_version < \"4.0\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipython_genutils (==0.2.0) ; platform_python_implementation != \"PyPy\"", "jedi (==0.16)", "jinja2 (==3.0.0) ; platform_python_implementation != \"PyPy\"", "jupyter_client (==7.0.0)", "jupyter_core (==4.7.0)", "nbconvert (==6.1.0) ; python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\""] -optional = ["IPython (>=7.23.1)", "Pygments (>=2.15.1)", "attrs (>=19.2.0)", "colorama (>=0.4.1) ; platform_system == \"Windows\"", "debugpy (>=1.0.0) ; python_version == \"3.8\"", "debugpy (>=1.3.0) ; python_version == \"3.9\"", "debugpy (>=1.6.0) ; python_version >= \"3.10\"", "ipykernel (>=6.0.0) ; python_version < \"3.12\" and python_version >= \"3.7\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipykernel (>=6.11.0) ; python_version < \"4.0\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipython_genutils (>=0.2.0) ; platform_python_implementation != \"PyPy\"", "jedi (>=0.16)", "jinja2 (>=3.0.0) ; platform_python_implementation != \"PyPy\"", "jupyter_client (>=7.0.0)", "jupyter_core (>=4.7.0)", "nbconvert (>=6.1.0) ; python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\"", "pyflakes (>=2.2.0)", "tomli (>=0.2.0) ; python_version < \"3.11.0\" and python_version >= \"3.6\""] -optional-strict = ["IPython (==7.23.1)", "Pygments (==2.15.1)", "attrs (==19.2.0)", "colorama (==0.4.1) ; platform_system == \"Windows\"", "debugpy (==1.0.0) ; python_version == \"3.8\"", "debugpy (==1.3.0) ; python_version == \"3.9\"", "debugpy (==1.6.0) ; python_version >= \"3.10\"", "ipykernel (==6.0.0) ; python_version < \"3.12\" and python_version >= \"3.7\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipykernel (==6.11.0) ; python_version < \"4.0\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\")", "ipython_genutils (==0.2.0) ; platform_python_implementation != \"PyPy\"", "jedi (==0.16)", "jinja2 (==3.0.0) ; platform_python_implementation != \"PyPy\"", "jupyter_client (==7.0.0)", "jupyter_core (==4.7.0)", "nbconvert (==6.1.0) ; python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\"", "pyflakes (==2.2.0)", "tomli (==0.2.0) ; python_version < \"3.11.0\" and python_version >= \"3.6\""] -tests = ["pytest (>=4.6.0) ; python_version < \"3.10.0\" and python_version >= \"3.7.0\"", "pytest (>=6.2.5) ; python_version >= \"3.10.0\"", "pytest-cov (>=3.0.0)"] -tests-binary = ["cmake (>=3.21.2) ; python_version < \"3.11\"", "cmake (>=3.25.0) ; python_version < \"4.0\" and python_version >= \"3.11\"", "ninja (>=1.10.2) ; python_version < \"3.11\"", "ninja (>=1.11.1) ; python_version < \"4.0\" and python_version >= \"3.11\"", "pybind11 (>=2.10.3) ; python_version < \"4.0\" and python_version >= \"3.11\"", "pybind11 (>=2.7.1) ; python_version < \"3.11\"", "scikit-build (>=0.11.1) ; python_version < \"3.11\"", "scikit-build (>=0.16.1) ; python_version < \"4.0\" and python_version >= \"3.11\""] -tests-binary-strict = ["cmake (==3.21.2) ; python_version < \"3.11\"", "cmake (==3.25.0) ; python_version < \"4.0\" and python_version >= \"3.11\"", "ninja (==1.10.2) ; python_version < \"3.11\"", "ninja (==1.11.1) ; python_version < \"4.0\" and python_version >= \"3.11\"", "pybind11 (==2.10.3) ; python_version < \"4.0\" and python_version >= \"3.11\"", "pybind11 (==2.7.1) ; python_version < \"3.11\"", "scikit-build (==0.11.1) ; python_version < \"3.11\"", "scikit-build (==0.16.1) ; python_version < \"4.0\" and python_version >= \"3.11\""] -tests-strict = ["pytest (==4.6.0) ; python_version < \"3.10.0\" and python_version >= \"3.7.0\"", "pytest (==6.2.5) ; python_version >= \"3.10.0\"", "pytest-cov (==3.0.0)"] - [[package]] name = "xdoctest" version = "1.3.2" @@ -4995,7 +4951,6 @@ description = "A rewrite of the builtin doctest module" optional = false python-versions = ">=3.8" groups = ["dev"] -markers = "python_version == \"3.13\"" files = [ {file = "xdoctest-1.3.2-py3-none-any.whl", hash = "sha256:052118c8efb2b4cfb54485d328915b9e7b44da37c64b0998ca6aa21193dcb601"}, {file = "xdoctest-1.3.2.tar.gz", hash = "sha256:bf6078c4fc0d60aafd8753fccdc435c95f26a640508e606d188d96f48359f0aa"}, @@ -5004,16 +4959,34 @@ files = [ [package.dependencies] attrs = {version = ">=19.2.0", optional = true, markers = "extra == \"optional\""} colorama = {version = ">=0.4.1", optional = true, markers = "platform_system == \"Windows\" and extra == \"optional\""} -debugpy = {version = ">=1.6.0", optional = true, markers = "python_version < \"3.14\" and python_version >= \"3.10\" and extra == \"optional\""} -ipykernel = {version = ">=6.11.0", optional = true, markers = "python_version < \"3.14\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\") and extra == \"optional\""} -IPython = {version = ">=7.23.1", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""} +debugpy = [ + {version = ">=1.6.0", optional = true, markers = "python_version < \"3.14\" and python_version >= \"3.10\" and extra == \"optional\""}, + {version = ">=1.8.0", optional = true, markers = "python_version < \"4\" and python_version >= \"3.14\" and extra == \"optional\""}, +] +ipykernel = [ + {version = ">=6.11.0", optional = true, markers = "python_version < \"3.14\" and python_version >= \"3.12\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\") and extra == \"optional\""}, + {version = ">=7.2.0", optional = true, markers = "python_version < \"4.0\" and python_version >= \"3.14\" and (platform_system != \"Windows\" or platform_python_implementation != \"PyPy\") and extra == \"optional\""}, +] +IPython = [ + {version = ">=7.23.1", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""}, + {version = ">=9.0.0", optional = true, markers = "python_version >= \"3.14\" and extra == \"optional\""}, +] ipython_genutils = {version = ">=0.2.0", optional = true, markers = "platform_python_implementation != \"PyPy\" and extra == \"optional\""} jedi = {version = ">=0.16", optional = true, markers = "extra == \"optional\""} jinja2 = {version = ">=3.0.0", optional = true, markers = "platform_python_implementation != \"PyPy\" and extra == \"optional\""} -jupyter_client = {version = ">=7.0.0", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""} -jupyter_core = {version = ">=4.7.0", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""} +jupyter_client = [ + {version = ">=7.0.0", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""}, + {version = ">=8.8.0", optional = true, markers = "python_version >= \"3.14\" and extra == \"optional\""}, +] +jupyter_core = [ + {version = ">=4.7.0", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""}, + {version = ">=5.7.0", optional = true, markers = "python_version >= \"3.14\" and extra == \"optional\""}, +] nbconvert = {version = ">=6.1.0", optional = true, markers = "python_version >= \"3.7.0\" and platform_python_implementation != \"PyPy\" and extra == \"optional\""} -pyflakes = {version = ">=2.2.0", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""} +pyflakes = [ + {version = ">=2.2.0", optional = true, markers = "python_version < \"3.14\" and extra == \"optional\""}, + {version = ">=3.3.0", optional = true, markers = "python_version < \"4.0\" and python_version >= \"3.14\" and extra == \"optional\""}, +] Pygments = {version = ">=2.15.1", optional = true, markers = "extra == \"optional\""} [package.extras] @@ -5050,4 +5023,4 @@ research = ["jupyterlab", "numpy", "pytz"] [metadata] lock-version = "2.1" python-versions = ">=3.13,<4.0" -content-hash = "de9508de1641521b71aff155e4f1e527b52faa338eebbaa8a45281c6b07d570a" +content-hash = "9761cf6cf78b3f88ed3cbafe263c30b9a3cf1d5fd09fcf614570bcdcc3d5e0d2" diff --git a/pyproject.toml b/pyproject.toml index e4a96f5..1ab0d5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,7 +90,7 @@ black = ">=19.10b0,<26" isort = ">=4.3.21,<6" # Code Analyzers -flake8 = ">=3.8.3,<5" +flake8 = ">=3.8.3" flake8-annotations = ">=2.3.0,<3" flake8-black = ">=0.2.1" flake8-pytest-style = ">=1.2.2,<2"