Skip to content

Consolidate pre-commit linting with ruff. - #127

Merged
trivialfis merged 1 commit into
dmlc:mainfrom
trivialfis:cleanup-linters
Nov 16, 2026
Merged

trivialfis merged 1 commit into
dmlc:mainfrom
trivialfis:cleanup-linters

Conversation

@trivialfis

Copy link
Copy Markdown
Member

Drop the black and isort.

Copilot AI left a comment

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.

🟢 Approval recommended

The Ruff linting and formatting consolidation has no active review issues.

No open issues 🎉

What changed in this PR

This PR consolidates Python pre-commit linting and formatting under Ruff, replacing the separate Black and isort hooks.

Changes:

  • Enable Ruff’s import-sorting rules and automatic lint fixes.
  • Replace Black and isort hooks with Ruff formatting.
  • Reformat the Docker build helper without changing its behavior.
File Description
containers/​docker_build.py Adjusts line wrapping to match Ruff formatting.
.ruff.toml Enables import sorting alongside existing NumPy checks.
.pre-commit-config.yaml Removes Black and isort; enables Ruff fixes and formatting.

Review effort: Balanced

@trivialfis
trivialfis merged commit 01ec433 into dmlc:main Nov 16, 2026
6 checks passed
@trivialfis
trivialfis deleted the cleanup-linters branch November 16, 2026 11:32

This branch was successfully deployed

1 active deployment
containers-staging — 4dfcc000 Deployed Nov 16, 2026 by trivialfis via trigger-build / display-message #86
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.

2 participants