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

ci(pre-commit.ci): autoupdate #269

Merged
merged 4 commits into from
Jan 2, 2025
Merged
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ repos:
- id: validate-pyproject

- repo: https://github.com/crate-ci/typos
rev: typos-dict-v0.11.35
rev: codespell-dict-v0.5.0
hooks:
- id: typos
args: [--force-exclude] # omit --write-changes

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.4
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
exclude: ^tests|^docs|_napari_plugin|widgets
Expand Down
4 changes: 2 additions & 2 deletions src/ome_types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
from typing import TYPE_CHECKING, Any

if TYPE_CHECKING:
from ome_types.units import ureg # noqa: TCH004
from ome_types.units import ureg # noqa: TC004

from ome_types import model
from ome_types._conversion import from_tiff, from_xml, to_dict, to_xml, validate_xml
from ome_types.model import OME

__all__ = [
"OME",
"__version__",
"from_tiff",
"from_xml",
"model",
"OME",
"to_dict",
"to_xml",
"ureg",
Expand Down
2 changes: 1 addition & 1 deletion src/ome_types/_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ParserKwargs(TypedDict, total=False):
handler: type[XmlHandler]


__all__ = ["from_xml", "to_xml", "to_dict", "from_tiff", "tiff2xml"]
__all__ = ["from_tiff", "from_xml", "tiff2xml", "to_dict", "to_xml"]

OME_ROOT = "http://www.openmicroscopy.org/Schemas/OME"
OME_2016_06_URI = f"{OME_ROOT}/2016-06"
Expand Down
50 changes: 25 additions & 25 deletions src/ome_types/model/simple_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,55 +23,55 @@
from ome_types.model._color import Color

__all__ = [
"PixelType",
"Binning",
"FontFamily",
"Hex40",
"LSID",
"Marker",
"Color",
"NamingConvention",
"NonNegativeFloat",
"NonNegativeInt",
"NonNegativeLong",
"PercentFraction",
"PixelType",
"PositiveFloat",
"PositiveInt",
"UnitsAngle",
"UnitsElectricPotential",
"UnitsFrequency",
"UnitsLength",
"UnitsPower",
"UnitsPressure",
"UnitsTemperature",
"UnitsTime",
"UniversallyUniqueIdentifier",
"ROIID",
"AnnotationID",
"Binning",
"ChannelID",
"Color",
"DatasetID",
"DetectorID",
"DichroicID",
"ExperimentID",
"ExperimenterGroupID",
"ExperimenterID",
"ExperimentID",
"FilterID",
"FilterSetID",
"FolderID",
"FontFamily",
"Hex40",
"ImageID",
"InstrumentID",
"LightSourceID",
"Marker",
"MicrobeamManipulationID",
"ModuleID",
"NamingConvention",
"NonNegativeFloat",
"NonNegativeInt",
"NonNegativeLong",
"ObjectiveID",
"PercentFraction",
"PixelType",
"PixelType",
"PixelsID",
"PlateAcquisitionID",
"PlateID",
"PositiveFloat",
"PositiveInt",
"ProjectID",
"ReagentID",
"ROIID",
"ScreenID",
"ShapeID",
"UnitsAngle",
"UnitsElectricPotential",
"UnitsFrequency",
"UnitsLength",
"UnitsPower",
"UnitsPressure",
"UnitsTemperature",
"UnitsTime",
"UniversallyUniqueIdentifier",
"WellID",
"WellSampleID",
]
Expand Down
2 changes: 1 addition & 1 deletion src/xsdata_pydantic_basemodel/pydantic_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from pydantic_compat import PYDANTIC2, Field

__all__ = ["Field", "PYDANTIC2"]
__all__ = ["PYDANTIC2", "Field"]

if TYPE_CHECKING:
from pydantic import BaseModel
Expand Down
Loading