Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- Keep modules small (single responsibility).
Sign in to like and favorite skills
utils or lib package with __all__ defined.__init__.py; avoid star imports elsewhere.from __future__ import annotations at top of new modules when forward refs help.TypedDict, Protocol, NewType, and Literal for precision.mypy (strict mode) in CI; fix or silence with targeted # type: ignore[code].concurrent.futures.ProcessPoolExecutor.asyncio.to_thread.asyncio.TaskGroup where possible.exceptions.py module.except; catch specific exceptions.logging library; configure in a single logging_config.py.extra dict) for observability.pydantic settings or dataclasses.pyproject.toml; use constraints for transitive locking.dev optional group.@pytest.mark.slow) and isolate external services (use pytest-asyncio for async tests).hypothesis) for pure logic.CHANGELOG.md (Keep a Changelog format) and semantic versioning.cProfile, pyinstrument).functools.lru_cache.black and ruff handle formatting & lint rules; avoid manual bikeshedding.pydantic models or dataclasses.__dict__ blindly.datetime.argparse or typer for CLIs; expose a main() guarded by if __name__ == "__main__":.sys.exit deep in logic.feat:, fix:, chore:, docs:).""" Summary line.
Args: param_name: Short description.
Returns: Description of return value.
Raises: SpecificError: Condition description. """
Adhere to these practices to maintain clarity, safety, and long-term maintainability.