Set black target to python3.6

This commit is contained in:
Glandos 2020-11-24 22:58:22 +01:00
parent 0380521b4a
commit 3f4b47276e
5 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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:

View file

@ -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)

View file

@ -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

View file

@ -22,7 +22,7 @@ changedir = {toxinidir}
[testenv:black]
commands =
black --check --target-version=py34 .
black --check --target-version=py36 .
isort -c -rc .
changedir = {toxinidir}