Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apply isort uniformly for a subset of directories #25824

Merged
merged 8 commits into from
Jun 17, 2022
Merged

apply isort uniformly for a subset of directories #25824

merged 8 commits into from
Jun 17, 2022

Conversation

clarng
Copy link
Contributor

@clarng clarng commented Jun 15, 2022

Why are these changes needed?

Simplify isort filters and move it into isort cfg file.

With this change, isort will not longer apply to diffs other than to files that are in whitelisted directory (isort only supports blacklist so we implement that instead) This is much simpler than building our own whitelist logic since our formatter runs multiple codepaths depending on whether it is formatting a single file / PR / entire repo in CI.

Related issue number

#25678

Checks

  • 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 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 :(

locally ran
./scripts/format.sh
./scripts/format.sh --all-scripts

@clarng clarng changed the title isort blacklist apply isort uniformly for a subset of directories Jun 15, 2022
@clarng clarng marked this pull request as ready for review June 15, 2022 23:10
@clarng clarng requested a review from fishbone June 15, 2022 23:12
@clarng
Copy link
Contributor Author

clarng commented Jun 16, 2022

Could use a stamp / review @richardliaw @edoakes @simon-mo

@fishbone fishbone merged commit 2b270fd into master Jun 17, 2022
@fishbone fishbone deleted the cn_isbl branch June 17, 2022 20:40
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.

5 participants