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
平均合併
2 天 23 小時
30 天內合併 PR
123

描述

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 摘要。