Skip to content

Commit ec94453

Browse files
committed
Run full suite of pre-commit checks
1 parent b27035c commit ec94453

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+104
-214
lines changed

.github/workflows/preview_metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
- name: napari hub Preview Page Builder
1919
uses: chanzuckerberg/[email protected]
2020
with:
21-
hub-ref: main
21+
hub-ref: main

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[settings]
22
force_single_line = True
3-
force_sort_within_sections = False
3+
force_sort_within_sections = False
44
lexicographical = True
55
single_line_exclusions = ('typing',)
66
order_by_type = False

.napari/DESCRIPTION.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ the functionality of your plugin. Its content will be rendered on your plugin's
77
napari hub page.
88
99
The sections below are given as a guide for the flow of information only, and
10-
are in no way prescriptive. You should feel free to merge, remove, add and
11-
rename sections at will to make this document work best for your plugin.
10+
are in no way prescriptive. You should feel free to merge, remove, add and
11+
rename sections at will to make this document work best for your plugin.
1212
-->
1313
## Description
1414

@@ -17,13 +17,13 @@ A napari plugin for 3D cell segmentation: training, inference, and data review.
1717
A detailed walk-through and description is available [on the documentation website](https://adaptivemotorcontrollab.github.io/cellseg3d-docs/res/welcome.html).
1818

1919
<!--
20-
This should be a detailed description of the context of your plugin and its
20+
This should be a detailed description of the context of your plugin and its
2121
intended purpose.
2222
2323
If you have videos or screenshots of your plugin in action, you should include them
24-
here as well, to make them front and center for new users.
24+
here as well, to make them front and center for new users.
2525
26-
You should use absolute links to these assets, so that we can easily display them
26+
You should use absolute links to these assets, so that we can easily display them
2727
on the hub. The easiest way to include a video is to use a GIF, for example hosted
2828
on imgur. You can then reference this GIF as an image.
2929
@@ -84,14 +84,14 @@ then from the “Plugins” menu within the napari application, select “Instal
8484
This section should go through step-by-step examples of how your plugin should be used.
8585
Where your plugin provides multiple dock widgets or functions, you should split these
8686
out into separate subsections for easy browsing. Include screenshots and videos
87-
wherever possible to elucidate your descriptions.
87+
wherever possible to elucidate your descriptions.
8888
8989
Ideally, this section should start with minimal examples for those who just want a
9090
quick overview of the plugin's functionality, but you should definitely link out to
9191
more complex and in-depth tutorials highlighting any intricacies of your plugin, and
9292
more detailed documentation if you have it.
9393
-->
94-
## Additional Install Steps
94+
## Additional Install Steps
9595

9696
**Python >= 3.8 required**
9797

@@ -110,8 +110,8 @@ for the majority of plugins. They will include instructions to pip install, and
110110
to install via napari itself.
111111
112112
Most plugins can be installed out-of-the-box by just specifying the package requirements
113-
over in `setup.cfg`. However, if your plugin has any more complex dependencies, or
114-
requires any additional preparation before (or after) installation, you should add
113+
over in `setup.cfg`. However, if your plugin has any more complex dependencies, or
114+
requires any additional preparation before (or after) installation, you should add
115115
this information here.
116116
-->
117117
## Getting Help
@@ -131,7 +131,7 @@ here.
131131
<!--
132132
Many plugins may be used in the course of published (or publishable) research, as well as
133133
during conference talks and other public facing events. If you'd like to be cited in
134-
a particular format, or have a DOI you'd like used, you should provide that information here.
134+
a particular format, or have a DOI you'd like used, you should provide that information here.
135135
136136
The developer has not yet provided a napari-hub specific description.
137-
-->
137+
-->

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v4.4.0
44
hooks:
5-
- id: check-docstring-first
5+
# - id: check-docstring-first
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/pycqa/isort
99
rev: 5.12.0
1010
hooks:
1111
- id: isort
12+
args: ["--profile", "black", --line-length=72]
1213
- repo: https://github.com/charliermarsh/ruff-pre-commit
1314
# Ruff version.
1415
rev: 'v0.0.262'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ A napari plugin for 3D cell segmentation: training, inference, and data review.
1717

1818
## News
1919

20-
*April 2023: New version with interface overhaul published ! New model and utilities coming soon*
20+
*April 2023: New version with interface overhaul published ! New model and utilities coming soon*
2121

2222

2323
**This is an alpha version, please expect bugs and issues, and help us make the code better by reporting them as an issue!**
@@ -34,7 +34,7 @@ Note : we recommend using conda to create a new environment for the plugin.
3434
conda create --name napari-cellseg3d python=3.8
3535
conda activate napari-cellseg3d
3636

37-
You can install `napari-cellseg3d` via [pip]:
37+
You can install `napari-cellseg3d` via [pip]:
3838

3939
pip install napari-cellseg3d
4040

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ Indices and tables
5454
* :ref:`genindex`
5555
* :ref:`modindex`
5656
* :ref:`search`
57-

docs/res/code/interface.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,3 @@ toggle_visibility
105105
open_file_dialog
106106
**************************************
107107
.. autofunction:: napari_cellseg3d.interface::open_file_dialog
108-
109-
110-
111-
112-
113-
114-
115-
116-
117-
118-
119-
120-
121-
122-
123-
124-
125-
126-

docs/res/code/model_framework.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ Attributes
2020
*********************
2121

2222
.. autoclass:: napari_cellseg3d.code_models.model_framework::ModelFramework
23-
:members: _viewer, worker, docked_widgets, images_filepaths, labels_filepaths, results_path
23+
:members: _viewer, worker, docked_widgets, images_filepaths, labels_filepaths, results_path

docs/res/code/model_workers.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,3 @@ Methods
4242
.. autoclass:: napari_cellseg3d.code_models.model_workers::TrainingWorker
4343
:members: __init__, log, train
4444
:noindex:
45-
46-
47-
48-
49-

docs/res/code/plugin_base.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ Attributes
3535
*********************
3636

3737
.. autoclass:: napari_cellseg3d.code_plugins.plugin_base::BasePluginFolder
38-
:members: _viewer, images_filepaths, labels_filepaths, results_path
38+
:members: _viewer, images_filepaths, labels_filepaths, results_path

0 commit comments

Comments
 (0)