Skip to content

Jules - BUILD Files#14

Draft
s2t2 wants to merge 1 commit intocopybara_pushfrom
feature/add-rl-build-files
Draft

Jules - BUILD Files#14
s2t2 wants to merge 1 commit intocopybara_pushfrom
feature/add-rl-build-files

Conversation

@s2t2
Copy link
Owner

@s2t2 s2t2 commented Jun 2, 2025

Add BUILD files to reinforcement_learning module and update py_library.

This commit introduces BUILD files to all subdirectories within the smart_control/reinforcement_learning module. These BUILD files define pytype_strict_library targets for all Python files, py_strict_binary targets for executable scripts, and py_strict_test targets for test files. Dependencies for each target have been determined by analyzing their imports.

Additionally, this commit updates one existing BUILD file (smart_control/utils/BUILD) to replace py_library targets with pytype_strict_library, ensuring consistency in the use of strict Python rules.

Summary of changes:

  • Updated smart_control/utils/BUILD:
    • Replaced py_library with pytype_strict_library for 'constants' and 'conversion_utils'.
    • Removed unused load statement for py_library.
  • Added smart_control/reinforcement_learning/agents/BUILD
  • Added smart_control/reinforcement_learning/agents/networks/BUILD
  • Added smart_control/reinforcement_learning/observers/BUILD
  • Added smart_control/reinforcement_learning/policies/BUILD
  • Added smart_control/reinforcement_learning/replay_buffer/BUILD
  • Added smart_control/reinforcement_learning/scripts/BUILD
  • Added smart_control/reinforcement_learning/utils/BUILD

Fixes google#79

This commit introduces BUILD files to all subdirectories within the
smart_control/reinforcement_learning module. These BUILD files define
pytype_strict_library targets for all Python files, py_strict_binary
targets for executable scripts, and py_strict_test targets for test files.
Dependencies for each target have been determined by analyzing their imports.

Additionally, this commit updates one existing BUILD file
(smart_control/utils/BUILD) to replace py_library targets with
pytype_strict_library, ensuring consistency in the use of strict Python
rules.

Summary of changes:
- Updated smart_control/utils/BUILD:
    - Replaced py_library with pytype_strict_library for 'constants' and 'conversion_utils'.
    - Removed unused load statement for py_library.
- Added smart_control/reinforcement_learning/agents/BUILD
- Added smart_control/reinforcement_learning/agents/networks/BUILD
- Added smart_control/reinforcement_learning/observers/BUILD
- Added smart_control/reinforcement_learning/policies/BUILD
- Added smart_control/reinforcement_learning/replay_buffer/BUILD
- Added smart_control/reinforcement_learning/scripts/BUILD
- Added smart_control/reinforcement_learning/utils/BUILD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update BUILD files

1 participant