mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
update black target version (#3300)
This commit is contained in:
parent
83e93916e8
commit
09a3a87cef
4
Makefile
4
Makefile
@ -2,9 +2,9 @@ PYTHON ?= python3.8
|
|||||||
|
|
||||||
# Python Code Style
|
# Python Code Style
|
||||||
reformat:
|
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:
|
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
|
# Translations
|
||||||
gettext:
|
gettext:
|
||||||
|
|||||||
4
make.bat
4
make.bat
@ -14,11 +14,11 @@ for /F "tokens=* USEBACKQ" %%A in (`git ls-files "*.py"`) do (
|
|||||||
goto %1
|
goto %1
|
||||||
|
|
||||||
:reformat
|
:reformat
|
||||||
black -l 99 --target-version py37 !PYFILES!
|
black -l 99 --target-version py38 !PYFILES!
|
||||||
exit /B %ERRORLEVEL%
|
exit /B %ERRORLEVEL%
|
||||||
|
|
||||||
:stylecheck
|
:stylecheck
|
||||||
black -l 99 --check --target-version py37 !PYFILES!
|
black -l 99 --check --target-version py38 !PYFILES!
|
||||||
exit /B %ERRORLEVEL%
|
exit /B %ERRORLEVEL%
|
||||||
|
|
||||||
:newenv
|
:newenv
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user