googleapis / googleapis/google-cloud-python

Add centralized path to mypy.ini in crc32c

未关闭
#17,606 0 条评论 0 个 reaction 已指派 1 人 已被 @chalmerlowe 认领 在 GitHub 查看
type: cleanup
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
122

描述

Add the centralized path to the root `mypy.ini` file for these packages:

- [x] ~bigframes~ obsolete, code moved to github.com/google/bigframes
- [ ] google-cloud-crc32c

Use the following path search:

```
# Path to the centralized mypy configuration file at the repository root.
# Search upwards to support running nox from both monorepo packages and integration test goldens.
MYPY_CONFIG_FILE = next(
(
str(p / "mypy.ini")
for p in CURRENT_DIRECTORY.parents
if (p / "mypy.ini").exists()
),
str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"),
)
```

[See this PR for exemplars](https://github.com/googleapis/google-cloud-python/pull/17409)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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