This repository has been archived by the owner on Jun 9, 2023. It is now read-only.
generated from thoth-station/template-project
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #557 from xtuchyna/fix/kebechet-metrics-logging
Fix kebechet adviser metrics, fix pre-commit, update pyproject.toml
- Loading branch information
Showing
9 changed files
with
461 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright (C) 2022 Dominik Tuchyna | ||
# | ||
# This file is part of thoth-station/mi - Meta-information Indicators. | ||
# | ||
# thoth-station/mi - Meta-information Indicators is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# thoth-station/mi - Meta-information Indicators is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with thoth-station/mi - Meta-information Indicators. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
"""Adivse manager metrics.""" | ||
|
||
from typing import List | ||
|
||
from voluptuous.schema_builder import Schema | ||
from voluptuous.validators import Any | ||
|
||
from srcopsmetrics.entities import Entity | ||
|
||
|
||
class ThothAdviseMetrics(Entity): | ||
"""Kebechet managers metrics class for a repository. | ||
Intended to be used only for loading and storing operations. | ||
""" | ||
|
||
entity_schema = Schema({int: {str: Any(str, int)}}) | ||
|
||
def analyse(self) -> List[Any]: | ||
"""Override :func:`~Entity.analyse`.""" | ||
raise NotImplementedError("cannot use with metrics") | ||
|
||
def store(self, github_entity): | ||
"""Override :func:`~Entity.store`.""" | ||
raise NotImplementedError("cannot use with metrics") | ||
|
||
def get_raw_github_data(self): | ||
"""Override :func:`~Entity.get_raw_github_data`.""" | ||
raise NotImplementedError("cannot use with metrics") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.