Name Date Size #Lines LOC

..--

random_number_generator/H25-Apr-2025-8228

.bazelrcH A D25-Apr-2025318 96

.gitignoreH A D25-Apr-20258 21

BUILD.bazelH A D25-Apr-20253.8 KiB10294

README.mdH A D25-Apr-2025800 2317

WORKSPACEH A D25-Apr-20255.5 KiB135112

__init__.pyH A D25-Apr-2025961 3010

__main__.pyH A D25-Apr-2025670 193

__test__.pyH A D25-Apr-2025981 3211

gazelle_python.yamlH A D25-Apr-20251 KiB3832

requirements.inH A D25-Apr-202543 43

requirements_lock.txtH A D25-Apr-202516.4 KiB255254

requirements_windows.txtH A D25-Apr-202516.6 KiB261260

README.md

1# Build file generation with Gazelle
2
3This example shows a project that has Gazelle setup with the rules_python
4extension, so that targets like `py_library` and `py_binary` can be
5automatically created just by running
6
7```sh
8bazel run //:requirements.update
9bazel run //:gazelle_python_manifest.update
10bazel run //:gazelle
11```
12
13As a demo, try creating a `__main__.py` file in this directory, then
14re-run that gazelle command. You'll see that a `py_binary` target
15is created in the `BUILD` file.
16
17Or, try importing the `requests` library in `__init__.py`.
18You'll see that `deps = ["@pip//pypi__requests"]` is automatically
19added to the `py_library` target in the `BUILD` file.
20
21For more information on the behavior of the rules_python gazelle extension,
22see the README.md file in the /gazelle folder.
23