Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@ ci:
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.6.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- id: check-merge-conflict
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]
- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports", "--ignore-init-module-imports", "--remove-unused-variables"]
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.5b2
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.19.0
rev: v3.16.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
rev: v1.10.1
hooks:
- id: mypy
7 changes: 2 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://github.com/Hekstra-Lab/napari-labeller
author = Ian Hunt-Isaak, John Russell
author_email = ianhuntisaak@gmail.com johncrussell25@gmail.com
license = BSD-3-Clause
license_file = LICENSE
license_files = LICENSE
classifiers =
Development Status :: 2 - Pre-Alpha
Framework :: napari
Expand All @@ -17,9 +17,6 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Software Development :: Testing
project_urls =
Bug Tracker = https://github.com/Hekstra-Lab/napari-labeller/issues
Expand All @@ -34,7 +31,7 @@ install_requires =
netcdf4
numpy
xarray
python_requires = >=3.7
python_requires = >=3.8
include_package_data = True
package_dir =
=src
Expand Down
1 change: 1 addition & 0 deletions src/napari_labeller/_dock_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Replace code below according to your needs.
"""

from pathlib import Path
from typing import Optional, Union

Expand Down
2 changes: 2 additions & 0 deletions src/napari_labeller/_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Replace code below according to your needs.
"""

from enum import Enum
from typing import TYPE_CHECKING

Expand Down Expand Up @@ -38,6 +39,7 @@ def threshold(
# 2. Second example, a function that adds, subtracts,
# multiplies, or divides two layers


# using Enums is a good way to get a dropdown menu.
# Used here to select from np functions
class Operation(Enum):
Expand Down