-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from joshmoore/multiscale
Multiscale support
- Loading branch information
Showing
9 changed files
with
258 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Precommit | ||
on: [push, pull_request] | ||
jobs: | ||
# https://github.com/pre-commit/action | ||
pre-commit: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
venv/ | ||
.idea/ | ||
*.iml | ||
*egg-info | ||
build/ | ||
dist/ | ||
src/__pycache__/ | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[settings] | ||
known_third_party = numpy,ome_zarr,omero,omero_zarr,setuptools,zarr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,84 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
# default black line length is 88 | ||
args: | ||
- --target-version=py35 | ||
- --line-length=79 | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.9 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
# flake8 is not PEP8 compliant | ||
# https://black.readthedocs.io/en/stable/the_black_code_style.html | ||
- --ignore=E203,W503 | ||
# default flake8 line length is 79 | ||
|
||
- repo: https://github.com/asottile/seed-isort-config | ||
rev: v1.9.3 | ||
hooks: | ||
- id: seed-isort-config | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.3.2 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/ambv/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
args: [--target-version=py36] | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.7.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: | ||
- --py36-plus | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.2.3 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-json | ||
files: \.(json)$ | ||
- id: check-yaml | ||
- id: fix-encoding-pragma | ||
args: | ||
- --remove | ||
- id: trailing-whitespace | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.3 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [ | ||
flake8-blind-except, | ||
flake8-builtins, | ||
flake8-rst-docstrings, | ||
flake8-logging-format, | ||
] | ||
args: [ | ||
# default black line length is 88 | ||
"--max-line-length=88", | ||
# Conflicts with black: E203 whitespace before ':' | ||
"--ignore=E203", | ||
"--rst-roles=class,func,ref,module,const", | ||
] | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.782 | ||
hooks: | ||
- id: mypy | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.782 | ||
hooks: | ||
- id: mypy | ||
args: [ | ||
--disallow-untyped-defs, | ||
--ignore-missing-imports, | ||
] | ||
exclude: tests/*|setup.py | ||
|
||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.24.2 | ||
hooks: | ||
- id: yamllint | ||
# args: [--config-data=relaxed] | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from omero_zarr.cli import ZarrControl, HELP | ||
from omero_zarr.cli import HELP, ZarrControl | ||
|
||
register("zarr", ZarrControl, HELP) # noqa | ||
register("zarr", ZarrControl, HELP) # type: ignore # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.