mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 09:22:38 +02:00
Set black target to python3.6
This commit is contained in:
parent
0380521b4a
commit
3f4b47276e
5 changed files with 5 additions and 5 deletions
2
Makefile
2
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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
2
tox.ini
2
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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue