Skip to content

Commit d428571

Browse files
authored
Fix some typos with codespell (#1284)
* Fix some typos with codespell * format
1 parent 8b87bf4 commit d428571

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

cluster_tools/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ include = ["cluster_tools*"]
3838
exclude = ["cluster_tools.tests"]
3939

4040
# This is a fix for an issue in setuptools. See: https://github.com/pypa/setuptools/issues/4759
41-
# This shoulde be removed when the issue is resolved.
41+
# This should be removed when the issue is resolved.
4242
[tool.setuptools]
4343
license-files = []
4444

cluster_tools/tests/test_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def raise_if(msg: str, _bool: bool) -> None:
4141
# Most of the specs in this module should be executed with multiple executors. Some tests
4242
# should be called with all executors (including the pickling variants) and some with a subset (i.e., without the pickling variants).
4343
# In order to avoid redundant parameterization of each test, pytest_generate_tests is defined here.
44-
# If a spec uses an `exc_with_pickling` fixture (defined as a function parameter), that test is automatically parameterized with all executors. Analoguous, parameterization happens with `exc`.
44+
# If a spec uses an `exc_with_pickling` fixture (defined as a function parameter), that test is automatically parameterized with all executors. Analogous, parameterization happens with `exc`.
4545
# Regarding how this works in details: This function is called for each test and has access to the fixtures supplied
4646
# to the test and most importantly can parametrize those fixtures.
4747
def pytest_generate_tests(metafunc: Any) -> None:

docs/overrides/main.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
</script>
5757
{% endblock libs %}
5858

59-
## Add a custom footer to every page highlight help otions, such as the community forums
59+
## Add a custom footer to every page, highlighting help options, such as the community forums
6060
{% block content %}
6161
{{ super() }}
6262
{% include "partials/page_content_footer.html" %}
63-
{% endblock %}
63+
{% endblock %}

webknossos/Changelog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ For upgrade instructions, please check the respective _Breaking Changes_ section
304304
### Breaking Changes
305305
- `RemoteDataset.display_name` is deprecated. To change the name of a dataset use the `name` property instead.
306306
- `Dataset.get_remote_datasets()` returns a mapping. The keys of this mapping changed from datasets name to datasets id.
307-
- `Task.create()` needs a `dataset_id` now instead of a `dataset_name`. Alternativly a `RemoteDataset` object can be used. The `dataset_name` is marked as deprecated. As `dataset_name` is an optional argument now its position has changed, this is important if `create()` is called only with positional arguments.
308-
- When uploading an Annotation the organization_id is neccessary now. The organization_id might be stored in the Annotation object or it is inferred from the current webknossos_context. [#1155](https://github.com/scalableminds/webknossos-libs/pull/1155)
307+
- `Task.create()` needs a `dataset_id` now instead of a `dataset_name`. Alternatively a `RemoteDataset` object can be used. The `dataset_name` is marked as deprecated. As `dataset_name` is an optional argument now its position has changed, this is important if `create()` is called only with positional arguments.
308+
- When uploading an Annotation the organization_id is necessary now. The organization_id might be stored in the Annotation object or it is inferred from the current webknossos_context. [#1155](https://github.com/scalableminds/webknossos-libs/pull/1155)
309309

310310
### Added
311311
- `Dataset` method `get_remote_datasets()` accepts `name` and `folder_id` as arguments now to filter remote datasets.
@@ -510,7 +510,7 @@ Removed the CZI installation extra from `pip install webknossos[all]` by default
510510
- Added a pixel level heuristic for distinguishing color and segmentation layers when importing image data with the `from_images` or `add_layer_from_images` method. [#1007](https://github.com/scalableminds/webknossos-libs/pull/1007)
511511
- Added .ims as supported suffix. [#1085](https://github.com/scalableminds/webknossos-libs/pull/1085)
512512
- Added suffixes supported by bioformats for Zeiss CZI, Leica LOF, Zeiss LSM (laser scanning microscope), Zeiss LSM (Laser Scanning Microscope) 510/710, Leica XLEF and Zeiss AxioVision ZVI (Zeiss Vision Image). [#1086](https://github.com/scalableminds/webknossos-libs/pull/1086)
513-
- Added suport for setting a default ID mapping for segmentation layers. [#1118](https://github.com/scalableminds/webknossos-libs/pull/1118)
513+
- Added support for setting a default ID mapping for segmentation layers. [#1118](https://github.com/scalableminds/webknossos-libs/pull/1118)
514514

515515
### Changed
516516
- Moved functional parts of merge volume annotation CLI to Dataset and Annotation classes. [#1055](https://github.com/scalableminds/webknossos-libs/pull/1055)

webknossos/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ requires = ["setuptools>=70.0", "wheel; python_version>='3.12'"]
189189
build-backend = "setuptools.build_meta"
190190

191191
# This is a fix for an issue in setuptools. See: https://github.com/pypa/setuptools/issues/4759
192-
# This shoulde be removed when the issue is resolved.
192+
# This should be removed when the issue is resolved.
193193
[tool.setuptools]
194194
license-files = []
195195

webknossos/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def use_replay_proxay(request: Any) -> Generator:
126126
if "use_proxay" in request.keywords:
127127
os.environ["HTTP_PROXY"] = "http://localhost:3000"
128128
os.environ["http_proxy"] = (
129-
"http://localhost:3000" # for tensorstore. env var names are case-senstive on Linux
129+
"http://localhost:3000" # for tensorstore. env var names are case-sensitive on Linux
130130
)
131131
httpx.post("http://localhost:3000/__proxay/tape", json={"tape": testname})
132132
yield

webknossos/webknossos/cli/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,6 @@ def prepare_shard_shape(
243243
else:
244244
if shard_shape % chunk_shape != Vec3Int.zeros():
245245
raise ValueError(
246-
f"The shard_shape {shard_shape} must be cleanly divisble by the chunk_shape {chunk_shape}."
246+
f"The shard_shape {shard_shape} must be cleanly divisible by the chunk_shape {chunk_shape}."
247247
)
248248
return shard_shape

webknossos/webknossos/geometry/vec_int.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ def __new__(
6969
if isinstance(args[0], VecInt):
7070
return args[0]
7171
if isinstance(args[0], np.ndarray):
72-
assert np.count_nonzero(args[0] % 1) == 0, (
73-
_value_error(args) + "Thsi error!"
74-
)
72+
assert np.count_nonzero(args[0] % 1) == 0, _value_error(args)
7573
if isinstance(args[0], str):
7674
return cls.from_str(args[0])
7775
if isinstance(args[0], Iterable):

0 commit comments

Comments
 (0)