tessl install tessl/pypi-pep257@0.7.0Python docstring style checker for PEP 257 compliance
Agent Success
Agent success rate when using this tile
72%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.04x
Baseline
Agent success rate without this tile
69%
Build a small utility that lint-checks Python files for docstring issues while allowing callers to decide whether inline # noqa comments suppress violations.
respect_inline_noqa is True, a public function or class line ending with # noqa does not produce missing-docstring violations. @testrespect_inline_noqa is False, the same # noqa markers no longer silence missing-docstring errors for public items. @test# noqa: D400 suppresses only summary-format violations while still reporting other codes in the file. @test@generates
from dataclasses import dataclass
from pathlib import Path
from typing import Iterable, List
@dataclass
class Violation:
code: str
path: Path
line: int
message: str
def lint_paths(paths: Iterable[Path], respect_inline_noqa: bool = True) -> List[Violation]:
"""Return violations found across the given files or directories, ordered by path then line."""Docstring linting engine with inline # noqa handling.