-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gazelle): Include types/stubs packages (#2425)
This PR adds logic that checks if a package has a corresponding `types` or `stubs` package and automatically adds that to the BUILD file. This is useful for typeckers e.g pyright , mypy --------- Co-authored-by: Ignas Anikevicius <[email protected]>
- Loading branch information
Showing
24 changed files
with
424 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
examples/bzlmod_build_file_generation/gazelle_python_with_types.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# GENERATED FILE - DO NOT EDIT! | ||
# | ||
# To update this file, run: | ||
# bazel run //:gazelle_python_manifest_with_types.update | ||
|
||
manifest: | ||
modules_mapping: | ||
S3: s3cmd | ||
asgiref: asgiref | ||
astroid: astroid | ||
certifi: certifi | ||
chardet: chardet | ||
dateutil: python_dateutil | ||
dill: dill | ||
django: Django | ||
django_stubs: django_stubs | ||
django_stubs_ext: django_stubs_ext | ||
idna: idna | ||
isort: isort | ||
lazy_object_proxy: lazy_object_proxy | ||
magic: python_magic | ||
mccabe: mccabe | ||
pathspec: pathspec | ||
pkg_resources: setuptools | ||
platformdirs: platformdirs | ||
pylint: pylint | ||
requests: requests | ||
setuptools: setuptools | ||
six: six | ||
sqlparse: sqlparse | ||
tabulate: tabulate | ||
tomli: tomli | ||
tomlkit: tomlkit | ||
types_pyyaml: types_pyyaml | ||
types_tabulate: types_tabulate | ||
typing_extensions: typing_extensions | ||
urllib3: urllib3 | ||
wrapt: wrapt | ||
yaml: PyYAML | ||
yamllint: yamllint | ||
pip_repository: | ||
name: pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.