find_work.core.types.results#
Public type definitions for result types, to be used by plugins.
- class find_work.core.types.results.VersionBump(atom: str, old_version: str, new_version: str)#
Bases:
object
Version bump representation for a Gentoo repository.
- atom: str#
Package name.
- old_version: str#
Outdated version.
- new_version: str#
Newest available version.
- changed(stop_after_part: VersionPart) bool #
Roughly determine whether versions differ up to the given part.
>>> VersionBump("foo", "1.3.2", "1.4").changed(VersionPart.PATCH) True >>> VersionBump("foo", "1.3.2", "2.0").changed(VersionPart.MINOR) True >>> VersionBump("foo", "1", "1.0.1").changed(VersionPart.MINOR) False >>> VersionBump("foo", "1", "1.1").changed(VersionPart.MINOR) True
Remember that it doesn’t always work correctly:
>>> VersionBump("foo", "1", "1.00").changed(VersionPart.MINOR) True
- class find_work.core.types.results.BugView(bug_id: int, last_change_date: str, assigned_to: str, summary: str)#
Bases:
object
Bug listing item representation.
- bug_id: int#
Bug ID.
- last_change_date: str#
Date this bug was last touched, in ISO format.
- assigned_to: str#
Assignee of this bug.
- summary: str#
Summary of this bug.
- class find_work.core.types.results.PkgcheckResultPriority(level: str, color: str)#
Bases:
object
Scan result priority representation.
- level: str#
Error level (e.g. ‘warning’, ‘style’, ‘error’).
- color: str#
Text color (e.g. ‘red’, ‘yellow’, ‘cyan’).
- class find_work.core.types.results.PkgcheckResult(priority: PkgcheckResultPriority, name: str, desc: str)#
Bases:
object
Single scan result representation.
- priority: PkgcheckResultPriority#
Result priority.
- name: str#
Keyword name.
- desc: str#
Result description.
- class find_work.core.types.results.PkgcheckResultsGroup#
Bases:
TypedDict
Scan result item representation.
- atom: str#
Package name.
- results: Set[PkgcheckResult]#
Scan results.