Skip to content

Commit

Permalink
🐛 Shorten reprs of pkg and project spec.
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed May 20, 2024
1 parent 544204d commit 0dc3f21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ozi/spec/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ozi.spec.base import Default


@dataclass(slots=True, frozen=True, eq=True)
@dataclass(slots=True, frozen=True, eq=True, repr=False)
class PkgVersion(Default):
"""Versioning metadata.
Expand Down Expand Up @@ -147,7 +147,7 @@ class License(Default):
exceptions: tuple[str, ...] = SPDX_LICENSE_EXCEPTIONS


@dataclass(slots=True, frozen=True, eq=True)
@dataclass(slots=True, frozen=True, eq=True, repr=False)
class Pkg(Default):
"""Packaging specification metadata."""

Expand Down
6 changes: 3 additions & 3 deletions ozi/spec/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ozi.spec.src import Src


@dataclass(slots=True, frozen=True, eq=True)
@dataclass(slots=True, frozen=True, eq=True, repr=False)
class PythonProject(Default):
"""Base class for Python Project specification metadata."""

Expand All @@ -32,12 +32,12 @@ class PythonProject(Default):
src: Src = Src()


@dataclass(slots=True, frozen=True, eq=True)
@dataclass(slots=True, frozen=True, eq=True, repr=False)
class ClassicProject(PythonProject):
"""OZI project using classic Python checkpoint toolchains."""


@dataclass(slots=True, frozen=True, eq=True)
@dataclass(slots=True, frozen=True, eq=True, repr=False)
class RuffProject(PythonProject):
"""Alternative to classic project using ruff for linting and formatting."""

Expand Down

0 comments on commit 0dc3f21

Please sign in to comment.