Skip to content

Commit

Permalink
style: [pre-commit.ci] auto fixes [...]
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 6, 2023
1 parent 83d255b commit 592dddc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/npe2/manifest/contributions/_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ConfigurationProperty(Draft07JsonSchema):
"plain text, set this value to `plain`.",
)

enum: Optional[conlist(Any, min_items=1, unique_items=True)] = Field( # type: ignore # noqa: E501
enum: Optional[conlist(Any, min_items=1, unique_items=True)] = Field( # type: ignore
None,
description="A list of valid options for this field. If you provide this field,"
"the settings UI will render a dropdown menu.",
Expand Down
2 changes: 1 addition & 1 deletion src/npe2/manifest/contributions/_json_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Config:
unique_items: bool = Field(False)
max_properties: Optional[int] = Field(None, ge=0)
min_properties: Optional[int] = Field(0, ge=0)
enum: Optional[conlist(Any, min_items=1, unique_items=True)] = Field(None) # type: ignore # noqa
enum: Optional[conlist(Any, min_items=1, unique_items=True)] = Field(None) # type: ignore
type: Union[JsonType, JsonTypeArray] = Field(None) # type: ignore
format: Optional[str] = Field(None)

Expand Down
6 changes: 3 additions & 3 deletions tests/test_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_manifest_from_sdist():


def test_get_manifest_from_wheel(tmp_path):
url = "https://files.pythonhosted.org/packages/f0/cc/7f6fbce81be3eb73266f398e49df92859ba247134eb086704dd70b43819a/affinder-0.2.3-py3-none-any.whl" # noqa
url = "https://files.pythonhosted.org/packages/f0/cc/7f6fbce81be3eb73266f398e49df92859ba247134eb086704dd70b43819a/affinder-0.2.3-py3-none-any.whl"
dest = tmp_path / "affinder-0.2.3-py3-none-any.whl"
urllib.request.urlretrieve(url, dest)
mf = get_manifest_from_wheel(dest)
Expand All @@ -107,8 +107,8 @@ def test_get_pypi_plugins():
@pytest.mark.parametrize(
"url",
[
"https://files.pythonhosted.org/packages/fb/01/e59bc1d6ac96f84ce9d7a46cc5422250e047958ead6c5693ed386cf94003/napari_dv-0.3.0.tar.gz", # noqa
"https://files.pythonhosted.org/packages/5d/ae/17779e12ce60d8329306963e1a8dec608465caee582440011ff0c1310715/example_plugin-0.0.7-py3-none-any.whl", # noqa
"https://files.pythonhosted.org/packages/fb/01/e59bc1d6ac96f84ce9d7a46cc5422250e047958ead6c5693ed386cf94003/napari_dv-0.3.0.tar.gz",
"https://files.pythonhosted.org/packages/5d/ae/17779e12ce60d8329306963e1a8dec608465caee582440011ff0c1310715/example_plugin-0.0.7-py3-none-any.whl",
# "git+https://github.com/DragaDoncila/example-plugin.git", Draga hide package
# this one doesn't use setuptools_scm, can check direct zip without clone
"https://github.com/jo-mueller/napari-stl-exporter/archive/refs/heads/main.zip",
Expand Down

0 comments on commit 592dddc

Please sign in to comment.