Buckets:

download
raw
1.56 kB
from pathlib import Path
from typing import Any
from .tooling_contract import DeveloperToolingContract
class DeveloperToolingStub(DeveloperToolingContract):
"""Stub implementation that can be instantiated and tested"""
@staticmethod
def run_pre_commit_checks(files: list[Path]) -> tuple[
bool,
dict[str, Any],
]:
"""Stub that returns valid default values"""
return False, {
"status": "not_implemented",
"team": "Developer Tooling",
"linting": {"checked": 0, "errors": 0, "warnings": 0},
"formatting": {"checked": 0, "formatted": 0},
"type_checking": {"checked": 0, "errors": 0},
"tests": {"run": 0, "passed": 0, "failed": 0},
"errors": ["Developer Tooling team will implement"],
}
@staticmethod
def format_code(files: list[Path], fix: bool = False) -> dict[str, Any]:
"""Stub that returns valid default values"""
return {
"status": "not_implemented",
"team": "Developer Tooling",
"formatted": [],
"errors": [],
"diff": {},
}
@staticmethod
def run_linting(
files: list[Path],
fix: bool = False,
) -> dict[str, list[dict[str, Any]]]:
"""Stub that returns valid default values"""
return {}
@staticmethod
def run_type_checking(files: list[Path]) -> dict[
str,
list[dict[str, Any]],
]:
"""Stub that returns valid default values"""
return {}

Xet Storage Details

Size:
1.56 kB
·
Xet hash:
3327b66166321ccdc2e09196af2a14ad227ac2c0fc15f3fff35fa2ba138b1e2f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.