yukihiko-shinoda/pyvelocity

View on GitHub
pyvelocity/checks/using_py_project_toml.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
"""Implements using pyproject.toml check."""
from pyvelocity.checks import Check, Result


class UsingPyProjectToml(Check):
    ID = "using-py-project-toml"

    def execute(self) -> Result:
        is_ok = self.configuration_files.py_project_toml is not None
        message = "" if is_ok else ("It's recommended to use pyproject.toml to gather settings for project.")
        return Result(self.ID, is_ok, message)