WeblateOrg / weblate

Missing module/function docstring PY-D0003
Documentation
Minor
5 occurrences in this check
Docstring missing for get_glossary_tsv_cache_key
493    def source_language_cache_key(self):
494        return f"project-source-language-ids-{self.pk}"
495
496    def get_glossary_tsv_cache_key(self, source_language, language):497        return f"project-glossary-tsv-{self.pk}-{source_language.code}-{language.code}"
498
499    def invalidate_source_language_cache(self):
Docstring missing for test_tsv
436            {""},
437        )
438
439    def test_tsv(self):440        # Import file
441        self.import_file(TEST_CSV)
442
Docstring missing for get_glossary_tsv
199    return "\n".join(output)
200
201
202def get_glossary_tsv(translation) -> str:203    project = translation.component.project
204    source_language = translation.component.source_language
205    language = translation.language
Docstring missing for cleanup
168    """
169    from weblate.trans.models.component import Component
170
171    def cleanup(text):172        return text.translate(CONTROLCHARS_TRANS).strip()
173
174    included = set()
Docstring missing for get_glossary_units
 63        )
 64
 65
 66def get_glossary_units(project, source_language, target_language): 67    return Unit.objects.filter(
 68        translation__component__in=project.glossaries,
 69        translation__component__source_language=source_language,