googleapis / googleapis/google-cloud-python

Add centralized path to mypy.ini in crc32c

Aperta
#17,606 0 commenti 0 reazioni 1 assegnatario Rivendicata da @chalmerlowe Vedi su GitHub
type: cleanup
Lingua principale
Python
Stelle
5.4k
Fork
1.8k
Merge medio
3g 4h
PR unite (30g)
122

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.