From 9766b7573b4602004e3eeacbbf6f3389689db3a2 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 4 Jan 2023 11:45:56 +0100 Subject: [PATCH 1/2] breaking: require Python 3.8, from Python 3.6 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ac20aae40..c5d52bd9c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: hooks: - id: pyupgrade args: - - --py37-plus + - --py38-plus # Autoformat: Python code - repo: https://github.com/psf/black diff --git a/pyproject.toml b/pyproject.toml index 8b082f288..6651401b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] # target-version should be all supported versions -target-version = ['py37', 'py38', 'py39', 'py310'] +target-version = ["py38", "py39", "py310", "py311"] [tool.isort] profile = "black" diff --git a/setup.py b/setup.py index 23a6b649a..547498e71 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ name="binderhub", version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(cmdclass), - python_requires=">=3.6", + python_requires=">=3.8", author="Project Jupyter Contributors", author_email="jupyter@googlegroups.com", license="BSD", From 3126fb6d94cb9fa74577d422ebcfc225d28cd220 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 4 Jan 2023 12:00:51 +0100 Subject: [PATCH 2/2] pre-commit: run with pyupgrade --py38-plus --- helm-chart/binderhub/files/binderhub_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-chart/binderhub/files/binderhub_config.py b/helm-chart/binderhub/files/binderhub_config.py index 15d4408ff..02623b319 100644 --- a/helm-chart/binderhub/files/binderhub_config.py +++ b/helm-chart/binderhub/files/binderhub_config.py @@ -6,7 +6,7 @@ yaml = YAML(typ="safe") # memoize so we only load config once -@lru_cache() +@lru_cache def _load_values(): """Load configuration from disk