Skip to content

Conversation

@czgdp1807
Copy link
Contributor

Why are these changes needed?

First split of #56416

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Gagandeep Singh <gdp.1807@gmail.com>
@czgdp1807 czgdp1807 requested a review from a team as a code owner September 19, 2025 07:00
@ray-gardener ray-gardener bot added rllib RLlib related issues devprod community-contribution Contributed by the community labels Sep 19, 2025
Copy link
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 enables ruff import sorting for the rllib/algorithms directory. The changes primarily consist of reordering imports across numerous files to adhere to the new linting rules, which is a great step towards code consistency.

My review has identified a couple of instances where the automated changes have introduced duplicate imports. These should be addressed to maintain code quality. Otherwise, the changes look good and align with the PR's objective.

Signed-off-by: Gagandeep Singh <gdp.1807@gmail.com>
Signed-off-by: Gagandeep Singh <gdp.1807@gmail.com>
Copy link
Contributor

@kamil-kaczmarek kamil-kaczmarek left a comment

Choose a reason for hiding this comment

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

LGTM! Great contribution 🚀

@kamil-kaczmarek kamil-kaczmarek changed the title LINT: Enable ruff imports for rllib/algorithms [RLlib] LINT: Enable ruff imports for rllib/algorithms Sep 24, 2025
@ArturNiederfahrenhorst ArturNiederfahrenhorst added the go add ONLY when ready to merge, run all tests label Sep 24, 2025
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Oct 18, 2025
Signed-off-by: Kamil Kaczmarek <kaczmarek.poczta@gmail.com>
@github-actions github-actions bot added unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it. and removed stale The issue is stale. It will be closed within 7 days unless there are further conversation labels Oct 19, 2025
@pseudo-rnd-thoughts
Copy link
Member

pseudo-rnd-thoughts commented Oct 21, 2025

@czgdp1807 We've resolved the CI problem (though there might still be problems) therefore could you resolve the merge conflicts and we'll try to merge them iteratively

Mark Towers added 8 commits October 31, 2025 10:25
# Conflicts:
#	pyproject.toml
#	rllib/core/learner/learner_group.py
Signed-off-by: Mark Towers <mark@anyscale.com>
# Conflicts:
#	pyproject.toml
#	rllib/env/env_runner.py
#	rllib/env/single_agent_episode.py
Signed-off-by: Mark Towers <mark@anyscale.com>
# Conflicts:
#	pyproject.toml
#	rllib/algorithms/algorithm.py
#	rllib/algorithms/appo/utils.py
#	rllib/algorithms/impala/impala.py
#	rllib/algorithms/impala/impala_learner.py
Signed-off-by: Mark Towers <mark@anyscale.com>
# Conflicts:
#	pyproject.toml
Signed-off-by: Mark Towers <mark@anyscale.com>
@pseudo-rnd-thoughts pseudo-rnd-thoughts changed the title [RLlib] LINT: Enable ruff imports for rllib/algorithms [RLlib] LINT: Enable ruff imports for rllib/algorithms and rllib/utils Oct 31, 2025
Signed-off-by: Mark Towers <mark@anyscale.com>
@simonsays1980 simonsays1980 merged commit 9268934 into ray-project:master Nov 7, 2025
6 checks passed
YoussefEssDS pushed a commit to YoussefEssDS/ray that referenced this pull request Nov 8, 2025
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
…b/utils`` (ray-project#56734)

Signed-off-by: Aydin Abiar <aydin@anyscale.com>
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
…b/utils`` (ray-project#56734)

Signed-off-by: YK <1811651+ykdojo@users.noreply.github.com>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community devprod go add ONLY when ready to merge, run all tests rllib RLlib related issues unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants