Add information about the file causing the error

未关闭
#482 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
documentation

调研方向

首先复现所示的 numpydoc 验证错误和 reST 错误,然后追踪这些消息是如何报告的。确定可以在何处附加源文件、函数、类或方法的上下文,同时不丢失现有的诊断信息。完成的标准是,报告的错误能够标识相关的源上下文;该 issue 未指定任何文件或要运行的测试。

由索引模型根据 Issue 内容生成。

描述

When getting error messages it does not provide information about the file causing the error


compilando [html]: todos los archivos fuente
actualizando ambiente: [nueva configuración] 12añadido, 0 cambiado, 0 removido
:4: (SEVERE/4) Unexpected section title.

Parameters
----------
WARNING: [numpydoc] Validation warnings while processing docstring for 'foo.Bar':
  SS03: Summary does not end with a period                                                                       
  ES01: No extended summary found                                                                                
  PR01: Parameters {'this', 'that', 'here'} not documented                                               
  SA01: See Also section not found                                                                               
  EX01: No examples section found                                                                                

[...]

error en marcado de reST:
:4: (SEVERE/4) Unexpected section title.

Parameters
----------

I would expect to have some information about the file/function/class/method causing the error.

主要语言
Python
星标
354
派生
185
平均合并
4 分钟
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

numpy/numpydoc 的其他 Issue

查看 numpy/numpydoc 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。