-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b792df0
commit 21bbda9
Showing
15 changed files
with
202 additions
and
170 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -82,4 +82,3 @@ venv/ | |
|
||
# written by setuptools_scm | ||
**/_version.py | ||
|
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,41 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.2.0 | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-docstring-first | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
exclude: ^\.napari-hub/.* | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.10.1 | ||
- id: check-yaml # checks for correct yaml syntax for github actions ex. | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.8.5 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.32.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py38-plus, --keep-runtime-typing] | ||
- repo: https://github.com/myint/autoflake | ||
rev: v1.4 | ||
hooks: | ||
- id: autoflake | ||
args: ["--in-place", "--remove-all-unused-imports"] | ||
- id: ruff | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-typing-imports>=1.9.0] | ||
- repo: https://github.com/tlambert03/napari-plugin-checks | ||
rev: v0.2.0 | ||
rev: v0.3.0 | ||
hooks: | ||
- id: napari-plugin-checks | ||
# https://mypy.readthedocs.io/en/stable/introduction.html | ||
# https://mypy.readthedocs.io/en/stable/ | ||
# you may wish to add this as well! | ||
# - repo: https://github.com/pre-commit/mirrors-mypy | ||
# rev: v0.910-1 | ||
# rev: v1.9.0 | ||
# hooks: | ||
# - id: mypy |
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
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,14 +1,120 @@ | ||
[project] | ||
name = "napari-annotator" | ||
dynamic = ["version"] | ||
description = "A lightweight plugin extending label layer control" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
authors = [ | ||
{name = "Loïc Sauteur"}, | ||
{email = "loic.sauteur@unibas.ch"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Framework :: napari", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Scientific/Engineering :: Image Processing", | ||
] | ||
requires-python = ">=3.9" | ||
dependencies = [ | ||
"numpy", | ||
"magicgui", | ||
"qtpy", | ||
"scikit-image", | ||
"napari>=0.5.5", | ||
] | ||
|
||
[project.optional-dependencies] | ||
testing = [ | ||
"tox", | ||
"pytest", # https://docs.pytest.org/en/latest/contents.html | ||
"pytest-cov", # https://pytest-cov.readthedocs.io/en/latest/ | ||
"pytest-qt", # https://pytest-qt.readthedocs.io/en/latest/ | ||
"napari", | ||
"pyqt5", | ||
] | ||
|
||
[project.entry-points."napari.manifest"] | ||
napari-annotator = "napari_annotator:napari.yaml" | ||
|
||
[project.urls] | ||
"Bug Tracker" = "https://github.com/loicsauteur/napari-annotator/issues" | ||
"Documentation" = "https://github.com/loicsauteur/napari-annotator#README.md" | ||
"Source Code" = "https://github.com/loicsauteur/napari-annotator" | ||
"User Support" = "https://github.com/loicsauteur/napari-annotator/issues" | ||
|
||
[build-system] | ||
requires = ["setuptools>=42.0.0", "wheel", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.yaml"] | ||
|
||
|
||
[tool.setuptools_scm] | ||
write_to = "src/napari_annotator/_version.py" | ||
|
||
|
||
[tool.black] | ||
line-length = 79 | ||
target-version = ['py38', 'py39', 'py310'] | ||
|
||
[tool.ruff] | ||
line-length = 79 | ||
lint.select = [ | ||
"E", "F", "W", #flake8 | ||
"UP", # pyupgrade | ||
"I", # isort | ||
"BLE", # flake8-blind-exception | ||
"B", # flake8-bugbear | ||
"A", # flake8-builtins | ||
"C4", # flake8-comprehensions | ||
"ISC", # flake8-implicit-str-concat | ||
"G", # flake8-logging-format | ||
"PIE", # flake8-pie | ||
"SIM", # flake8-simplify | ||
] | ||
lint.ignore = [ | ||
"E501", # line too long. let black handle this | ||
"UP006", "UP007", # type annotation. As using magicgui require runtime type annotation then we disable this. | ||
"SIM117", # flake8-simplify - some of merged with statements are not looking great with black, reanble after drop python 3.9 | ||
] | ||
|
||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".mypy_cache", | ||
".pants.d", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"venv", | ||
"*vendored*", | ||
"*_vendor*", | ||
] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 79 | ||
target-version = "py38" | ||
fix = true |
Oops, something went wrong.