Skip to content

Commit

Permalink
test flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ywkure committed Feb 17, 2021
1 parent a353cf8 commit 3d2fae3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Lint
run: |
black ./ --check
# flake8
flake8
# test:
# needs: lint
# runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions napari_split_dataset/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ def read_directory(path):
return None

if len(data.shape) > 3:
# set contrast limits for 4D data
# otherwise napari tries to set them after reading everything, which would take too long if the data was large.
# set contrast limits for 4D data.
# otherwise napari tries to set them after reading everything,
# which would take too long if the data was large.
data_for_contrast = data[
min(2, data.shape[0] - 1) : min(7, data.shape[0]), :, :, :
]
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
ignore = E203, W503
max-line-length = 88
exclude = __init__.py
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""The setup script."""

from setuptools import setup, find_packages
import os

with open("README.rst") as readme_file:
readme = readme_file.read()
Expand Down

0 comments on commit 3d2fae3

Please sign in to comment.