python-docstring-style

tarafından nvidia

Python docstring'lerini ve satır içi yorumları flashdreams ev stiline uygun yazın — SPDX başlığı, tek satırlık modül docstring'i, Google tarzı fonksiyon docstring'leri…

npx skills add https://github.com/nvidia/flashdreams --skill python-docstring-style

Python docstrings and comments

Read Coding conventions, inspect the surrounding module, and check the docs configuration when changing rendered API documentation. The current Python renderer uses Google-style docstrings.

  • Keep the existing SPDX notices; new files use the actual copyright holder and current year as described in CONTRIBUTING.md. Put the module docstring before imports.
  • Use a concise summary. For functions, describe the operation with an imperative verb; add Args, Returns and Raises only where they explain semantics, shapes, defaults or caller-visible failure conditions beyond the signature.
  • Match nearby attribute docstrings for class/dataclass fields and non-obvious module constants. Explain invariants once; avoid boilerplate for _target or values already clear from their names and types.
  • Keep comments that explain intent, constraints or help readers scan a complex block. Remove stale history and literal restatements of adjacent code, without stripping useful comments wholesale.
  • Use the current renderer's supported code/reference syntax. Do not introduce Sphinx-only roles or configuration assumptions into the Zensical docs.

Run the applicable formatter and documentation checks for the files changed. Keep API behavior unchanged during documentation-only edits.

nvidia tarafından daha fazla skill

accelerated-computing-cudf
nvidia
NVIDIA tarafından yazılmış resmi kılavuz: NVIDIA cuDF GPU DataFrames, pandas hızlandırma, dask-cuDF, ETL, birleştirmeler, groupby, CSV/Parquet G/Ç, boş değer anlam bilimi ve…
accessibility
nvidia
Statik analiz, çalışma zamanı testi, ARIA desenleri, klavye navigasyonu ve renk kontrastı genelinde birleşik accessibility denetim iş akışı. Bu beceriyi kullanın…
accessing-mlflow
nvidia
MLflow'da depolanan değerlendirme sonuçlarını sorgulayın ve göz atın. Kullanıcının çağrı kimliğine göre çalıştırmaları aramak, modeller arasında metrikleri karşılaştırmak, yapıtları getirmek istediğinde kullanın…
add-binding-feature
nvidia
NeMo Relay genel API yüzeyine, çekirdek çalışma zamanı ve etkilenen her bağlama üzerinde yeni bir özellik ekleyin veya mevcut bir özelliği değiştirin.
add-middleware
nvidia
NeMo Relay middleware hattına yeni bir güvenlik duvarı veya müdahale türü ekleyin
aicr-analyzing-snapshots
nvidia
AICR snapshot YAML dosyasını analiz ederken, küme durumunu incelerken, sağlayıcı özelliklerini karşılaştırırken, GPU/ağ topolojisi içgörüleri çıkarırken veya… kullanın.
aicr-auditing-docs
nvidia
AICR'ın Markdown dokümantasyonunu kopya, sapma, şişkinlik ve eksiklikler açısından gözden geçirirken kullanın — proje geliştikçe dokümanların yüksek değerli kalmasını sağlamak için. "audit…" ifadesiyle tetiklenir.
aicr-creating-guided-demos
nvidia
Etkileşimli rehberli demo scripti (demos/*.sh) hazırlar, canlı veya kendi hızında, Frame → Tell → Show → Close deseniyle. "demo script", "guided…" üzerine tetiklenir.