CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-pep257

tessl install tessl/pypi-pep257@0.7.0

Python 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%

task.mdevals/scenario-3/

Inline Noqa Docstring Lint Runner

Build a small utility that lint-checks Python files for docstring issues while allowing callers to decide whether inline # noqa comments suppress violations.

Capabilities

Honors inline suppressions

  • When respect_inline_noqa is True, a public function or class line ending with # noqa does not produce missing-docstring violations. @test

Toggle suppressions off

  • When respect_inline_noqa is False, the same # noqa markers no longer silence missing-docstring errors for public items. @test

Code-specific suppression

  • Inline # noqa: D400 suppresses only summary-format violations while still reporting other codes in the file. @test

Implementation

@generates

API

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."""

Dependencies { .dependencies }

pydocstyle { .dependency }

Docstring linting engine with inline # noqa handling.

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/pep257@0.7.x
tile.json