diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index 3116a12..7cfd62b 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -3,4 +3,4 @@ pipeline: image: python:slim commands: - pip install black - - black --check --line-length 120 --target-version=py37 . + - black --check --line-length 120 --target-version=py39 . diff --git a/flaschengeist/config.py b/flaschengeist/config.py index 49a9a2f..3adae22 100644 --- a/flaschengeist/config.py +++ b/flaschengeist/config.py @@ -56,7 +56,7 @@ def configure_logger(): logger_config["handlers"]["wsgi"]["level"] = level # Read default config - logger_config = toml.load(Path(__file__).parent /"logging.toml") + logger_config = toml.load(Path(__file__).parent / "logging.toml") if "LOGGING" in config: # Override with user config update_dict(logger_config, config.get("LOGGING")) diff --git a/flaschengeist/plugins/users/__init__.py b/flaschengeist/plugins/users/__init__.py index b485f97..eef0041 100644 --- a/flaschengeist/plugins/users/__init__.py +++ b/flaschengeist/plugins/users/__init__.py @@ -105,7 +105,7 @@ def frontend(userid, current_session): raise Forbidden if request.method == "POST": - if request.content_length > 1024 ** 2: + if request.content_length > 1024**2: raise BadRequest current_session.user_.set_attribute("frontend", request.get_json()) return no_content()