mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-05 18:58:53 -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
|
||||
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:
|
||||
|
||||
4
make.bat
4
make.bat
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user