googleapis / googleapis/google-cloud-python

Add centralized path to mypy.ini in crc32c

Ouverte
#17,606 0 commentaires 0 réactions 1 personne assignée Réclamée par @chalmerlowe Voir sur GitHub
type: cleanup
Langage dominant
Python
Étoiles
5.4k
Forks
1.8k
Merge moyen
3 j 4 h
PR mergées (30 j)
122

Description

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)

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.