From 3f4b47276e8c81cde2542a00ce90f3a0ffc1639a Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 24 Nov 2020 22:58:22 +0100 Subject: [PATCH] Set black target to python3.6 --- Makefile | 2 +- ihatemoney/migrations/env.py | 2 +- ihatemoney/patch_sqlalchemy_continuum.py | 2 +- ihatemoney/run.py | 2 +- tox.ini | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 63002664..30de0dd7 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ test: install-dev ## Run the tests .PHONY: black black: install-dev ## Run the tests - $(VENV)/bin/black --target-version=py34 . + $(VENV)/bin/black --target-version=py36 . .PHONY: isort isort: install-dev ## Run the tests diff --git a/ihatemoney/migrations/env.py b/ihatemoney/migrations/env.py index 0bd0031e..1a443181 100755 --- a/ihatemoney/migrations/env.py +++ b/ihatemoney/migrations/env.py @@ -77,7 +77,7 @@ def run_migrations_online(): target_metadata=target_metadata, include_object=include_object, process_revision_directives=process_revision_directives, - **current_app.extensions["migrate"].configure_args + **current_app.extensions["migrate"].configure_args, ) try: diff --git a/ihatemoney/patch_sqlalchemy_continuum.py b/ihatemoney/patch_sqlalchemy_continuum.py index dbbd9083..eecfe6fa 100644 --- a/ihatemoney/patch_sqlalchemy_continuum.py +++ b/ihatemoney/patch_sqlalchemy_continuum.py @@ -96,7 +96,7 @@ class PatchedRelationShipBuilder(RelationshipBuilder): association_col == self.association_version_table.c[association_col.name] for association_col in association_cols - ] + ], ) ) .group_by(*association_cols) diff --git a/ihatemoney/run.py b/ihatemoney/run.py index 1d2a575f..4ce8aaaf 100644 --- a/ihatemoney/run.py +++ b/ihatemoney/run.py @@ -170,7 +170,7 @@ def create_app( number, currency if currency != CurrencyConverter.no_currency else "", *args, - **kwargs + **kwargs, ).strip() app.jinja_env.filters["currency"] = currency diff --git a/tox.ini b/tox.ini index 2c9e1178..6b967871 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ changedir = {toxinidir} [testenv:black] commands = - black --check --target-version=py34 . + black --check --target-version=py36 . isort -c -rc . changedir = {toxinidir}