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-6/

Docstring Reporter Output Controls

A small CLI that runs a docstring linter over a provided path while letting the caller opt into richer reporting (explanations, source snippets, verbose logs, and a violation count summary). Default runs should emit only the standard violation lines and exit with a non-zero status when violations exist.

Capabilities

Explanation toggle

  • Supplying an --include-explanations flag appends the rule explanations after each violation; omitting the flag leaves explanations out. @test

Source snippet toggle

  • Supplying an --include-source flag prints the offending source lines alongside each violation; omitting the flag leaves source snippets out. This should work alongside explanations when both toggles are used. @test

Verbose run logging

  • Supplying an --verbose-run flag enables verbose logging that shows which files are inspected; the default run keeps that chatter hidden. @test

Violation count summary

  • Supplying a --with-count flag appends a final line stating the total number of violations and that count matches the violations emitted above; the line is absent when the flag is not provided. @test

Implementation

@generates

API

def main(argv: list[str] | None = None) -> int:
    """Parse CLI args, run the docstring linter with requested output controls, and return the exit code."""

Dependencies { .dependencies }

pydocstyle { .dependency }

Docstring linter used to produce violations, optional explanations, source snippets, verbose logging, and a count summary.

Version

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