aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlandos <bugs-github@antipoul.fr>2020-11-24 22:58:22 +0100
committerGlandos <bugs-github@antipoul.fr>2020-11-25 09:25:36 +0100
commit3f4b47276e8c81cde2542a00ce90f3a0ffc1639a (patch)
tree312408521735ba1b12733462c2eacd2742b80e0f
parent0380521b4a6f4a0efcc544ca57134def94ac19ba (diff)
downloadihatemoney-mirror-3f4b47276e8c81cde2542a00ce90f3a0ffc1639a.zip
ihatemoney-mirror-3f4b47276e8c81cde2542a00ce90f3a0ffc1639a.tar.gz
ihatemoney-mirror-3f4b47276e8c81cde2542a00ce90f3a0ffc1639a.tar.bz2
Set black target to python3.6
-rw-r--r--Makefile2
-rwxr-xr-xihatemoney/migrations/env.py2
-rw-r--r--ihatemoney/patch_sqlalchemy_continuum.py2
-rw-r--r--ihatemoney/run.py2
-rw-r--r--tox.ini2
5 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6300266..30de0dd 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 0bd0031..1a44318 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 dbbd908..eecfe6f 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 1d2a575..4ce8aaa 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 2c9e117..6b96787 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}