mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Add make stylediff command and run it in tox (#3535)
* Update Makefile * Update make.bat * Update tox.ini
This commit is contained in:
parent
066bf516d9
commit
9e1f358f82
2
Makefile
2
Makefile
@ -5,6 +5,8 @@ reformat:
|
|||||||
$(PYTHON) -m black `git ls-files "*.py"`
|
$(PYTHON) -m black `git ls-files "*.py"`
|
||||||
stylecheck:
|
stylecheck:
|
||||||
$(PYTHON) -m black --check `git ls-files "*.py"`
|
$(PYTHON) -m black --check `git ls-files "*.py"`
|
||||||
|
stylediff:
|
||||||
|
$(PYTHON) -m black --check --diff `git ls-files "*.py"`
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
gettext:
|
gettext:
|
||||||
|
|||||||
4
make.bat
4
make.bat
@ -21,6 +21,10 @@ exit /B %ERRORLEVEL%
|
|||||||
black --check !PYFILES!
|
black --check !PYFILES!
|
||||||
exit /B %ERRORLEVEL%
|
exit /B %ERRORLEVEL%
|
||||||
|
|
||||||
|
:stylediff
|
||||||
|
black --check --diff !PYFILES!
|
||||||
|
exit /B %ERRORLEVEL%
|
||||||
|
|
||||||
:newenv
|
:newenv
|
||||||
py -3.8 -m venv --clear .venv
|
py -3.8 -m venv --clear .venv
|
||||||
.\.venv\Scripts\python -m pip install -U pip setuptools
|
.\.venv\Scripts\python -m pip install -U pip setuptools
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user