From adeb021afd2b89bed303b1017d5d394455d4c45f Mon Sep 17 00:00:00 2001 From: thoppe Date: Tue, 11 Jun 2019 17:18:07 -0400 Subject: [PATCH] Linting --- DEV_README.md | 10 +++++----- pixelhouse/canvas.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DEV_README.md b/DEV_README.md index 99aaef9..f73efbd 100644 --- a/DEV_README.md +++ b/DEV_README.md @@ -23,8 +23,8 @@ Use the following `~/.pypirc` file (with an updated username and password) + Test release, check coverage, and lint + Push the release to [pypi live](https://pypi.org/project/pixelhouse/) - tox - black --line-length 80 pixelhouse unincorporated_demos/ tests/ - rm dist/ -rvf && python setup.py sdist - twine upload -r test dist/* - twine upload dist/* \ No newline at end of file + tox + black --line-length 80 pixelhouse unincorporated_demos/ tests/ + rm dist/ -rvf && python setup.py sdist + twine upload -r test dist/* + twine upload dist/* \ No newline at end of file diff --git a/pixelhouse/canvas.py b/pixelhouse/canvas.py index e1bf155..eee203e 100644 --- a/pixelhouse/canvas.py +++ b/pixelhouse/canvas.py @@ -441,7 +441,7 @@ def load(self, filename): # If needed, add in an alpha channel as fully opaque if img.shape[2] == 3: - alpha = 255*np.ones_like(img[:, :, 0]) + alpha = 255 * np.ones_like(img[:, :, 0]) img = np.dstack((img, alpha)) self.img = cv2.cvtColor(img, cv2.COLOR_BGRA2RGBA)