diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9e6a43..08bc79d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: # Autoformat: Python code - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 24.1.1 hooks: - id: black args: @@ -36,7 +36,7 @@ repos: # Autoformat: Python code - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: @@ -44,14 +44,14 @@ repos: # Autoformat: markdown, yaml (but not helm templates) - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v4.0.0-alpha.8 hooks: - id: prettier exclude: binderhub-service/templates/.* # Linting: Python code (see the file .flake8) - repo: https://github.com/PyCQA/flake8 - rev: "6.1.0" + rev: "7.0.0" hooks: - id: flake8 # Ignore style and complexity diff --git a/binderhub-service/mounted-files/binderhub_config.py b/binderhub-service/mounted-files/binderhub_config.py index 03057ca..7cf92a9 100644 --- a/binderhub-service/mounted-files/binderhub_config.py +++ b/binderhub-service/mounted-files/binderhub_config.py @@ -2,6 +2,7 @@ This configuration file is mounted to be read by binderhub with the sole purpose of loading chart configuration passed via "config" and "extraConfig". """ + from functools import lru_cache from ruamel.yaml import YAML