Skip to content
Permalink
Browse files

update black target version (#3300)

  • Loading branch information
mikeshardmind committed Jan 9, 2020
1 parent 83e9391 commit 09a3a87cef21d6b15009bbe3dfdce928e96c4b46
Showing with 4 additions and 4 deletions.
  1. +2 −2 Makefile
  2. +2 −2 make.bat
@@ -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:
@@ -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

0 comments on commit 09a3a87

Please sign in to comment.
You can’t perform that action at this time.