为python项目构建git.sr.ht注释
annotatep的Python项目详细描述
注释py
扫描python源代码并为 git.sr.ht的代码annotations feature。
此项目处于开发的早期阶段,因此可能会发生变化并中断 没有警告。
资源
- 主页:https://git.sr.ht/~ihabunek/annotatepy/
- 问题:https://todo.sr.ht/~ihabunek/annotatepy/
- 包装:https://pypi.org/project/annotatepy/
用法
annotatepy [-h] [-o OUTPUT] [-r ROOT] [source_paths [source_paths ...]]
Generate sourcehut annotations
positional arguments:
source_paths one or more paths within the project containing the
code to be annotated (defaults to project root)
optional arguments:
-h, --help show this help message and exit
-r ROOT, --root ROOT project root (defaults to working dir)
-v, --verbose enable verbose logging
-q, --quiet disable logging
https://git.sr.ht/~ihabunek/annotatepy/
示例
在项目中的src
和test
目录中注释代码
从项目根运行将注释上载到sourcehut:
annotatepy src test > annotations.json
请参阅有关将生成的批注上载到SourceHut项目的文档 here。