Skip to content

[train] Make env vars file common#1276

Merged
SumanthRH merged 3 commits intomainfrom
sumanthrh/make-env-vars-common
Mar 4, 2026
Merged

[train] Make env vars file common#1276
SumanthRH merged 3 commits intomainfrom
sumanthrh/make-env-vars-common

Conversation

@SumanthRH
Copy link
Copy Markdown
Member

@SumanthRH SumanthRH commented Mar 4, 2026

What does this PR do?

Removes duplicated env_vars file and makes them common


Open with Devin

Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
x
Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
@SumanthRH SumanthRH marked this pull request as ready for review March 4, 2026 20:25
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request centralizes environment variable definitions into a common skyrl.env_vars module, which is a great refactoring effort that removes duplication and significantly improves code maintainability. No security vulnerabilities were found in this change. I have a couple of suggestions to further improve code style by moving local imports to the top of the file, in line with PEP 8 guidelines.

go to stdout.
"""
from skyrl.train.env_vars import SKYRL_DUMP_INFRA_LOG_TO_STDOUT
from skyrl.env_vars import SKYRL_DUMP_INFRA_LOG_TO_STDOUT
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For better code readability and adherence to PEP 8, this local import should be moved to the top of the file. Since skyrl.env_vars is a lightweight module without circular dependency risks here, a top-level import is preferred.

@SumanthRH SumanthRH merged commit ef32b63 into main Mar 4, 2026
7 checks passed
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.

1 participant