Skip to content

Commit

Permalink
Paint it black
Browse files Browse the repository at this point in the history
  • Loading branch information
rgieseke committed May 22, 2019
1 parent 21323f5 commit 8231d48
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,12 @@ test-testpypi-install:
# Remove local directory from path to get actual installed version.
$(TEMPVENV)/bin/python -c "import sys; sys.path.remove(''); import pyhector; print(pyhector.__version__)"

.PHONY: watchdocs write_defaults write_constants plot_example publish-on-pypi test-pypi-install publish-on-testpypi test-testpypi-install
black: venv
@status=$$(git status --porcelain pyhector tests); \
if test "x$${status}" = x; then \
./venv/bin/black --exclude _version.py setup.py pyhector tests; \
else \
echo Not trying any formatting. Working directory is dirty ... >&2; \
fi;

.PHONY: watchdocs write_defaults write_constants plot_example publish-on-pypi test-pypi-install publish-on-testpypi test-testpypi-install black
4 changes: 3 additions & 1 deletion tests/test_pyhector.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,6 @@ def test_hector_version():
if "+" in pyhector.__version__:
pass
else:
assert ".".join(pyhector.__version__.split(".")[:3]) == pyhector.__hector_version__
assert (
".".join(pyhector.__version__.split(".")[:3]) == pyhector.__hector_version__
)

0 comments on commit 8231d48

Please sign in to comment.