Skip to content
Permalink
Browse files

Add `make stylediff` command and run it in tox (#3535)

* Update Makefile

* Update make.bat

* Update tox.ini
  • Loading branch information
jack1142 committed Feb 14, 2020
1 parent 066bf51 commit 9e1f358f82e5639e04c5aa93307351407426d6d8
Showing with 7 additions and 1 deletion.
  1. +2 −0 Makefile
  2. +4 −0 make.bat
  3. +1 −1 tox.ini
@@ -5,6 +5,8 @@ reformat:
$(PYTHON) -m black `git ls-files "*.py"`
stylecheck:
$(PYTHON) -m black --check `git ls-files "*.py"`
stylediff:
$(PYTHON) -m black --check --diff `git ls-files "*.py"`

# Translations
gettext:
@@ -21,6 +21,10 @@ exit /B %ERRORLEVEL%
black --check !PYFILES!
exit /B %ERRORLEVEL%

:stylediff
black --check --diff !PYFILES!
exit /B %ERRORLEVEL%

:newenv
py -3.8 -m venv --clear .venv
.\.venv\Scripts\python -m pip install -U pip setuptools
@@ -65,4 +65,4 @@ setenv =
basepython = python3.8
extras = style
commands =
make stylecheck
make stylediff

0 comments on commit 9e1f358

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