update black target version (#3300)

This commit is contained in:
Michael H 2020-01-09 11:35:19 -05:00 committed by GitHub
parent 83e93916e8
commit 09a3a87cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@ PYTHON ?= python3.8
# Python Code Style
reformat:
$(PYTHON) -m black -l 99 --target-version py37 `git ls-files "*.py"`
$(PYTHON) -m black -l 99 --target-version py38 `git ls-files "*.py"`
stylecheck:
$(PYTHON) -m black --check -l 99 --target-version py37 `git ls-files "*.py"`
$(PYTHON) -m black --check -l 99 --target-version py38 `git ls-files "*.py"`
# Translations
gettext:

View File

@ -14,11 +14,11 @@ for /F "tokens=* USEBACKQ" %%A in (`git ls-files "*.py"`) do (
goto %1
:reformat
black -l 99 --target-version py37 !PYFILES!
black -l 99 --target-version py38 !PYFILES!
exit /B %ERRORLEVEL%
:stylecheck
black -l 99 --check --target-version py37 !PYFILES!
black -l 99 --check --target-version py38 !PYFILES!
exit /B %ERRORLEVEL%
:newenv