Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDPD-69232: [lint] Remove pylint and switch to ruff for Hue backend l…
…inting (#3703) - Current pylint setup in Hue was linting staged changes only by checking for 3 rules. - Also pylint is comparatively slow and GPL licensed. - Switching to ruff has its own perks which are mentioned on: https://docs.astral.sh/ruff/ and it's MIT licensed. - For starters, it's waaayyy faster, can auto-fix errors and work as both linter and formatter replacing a lot of latest packages (like a all-in-one solution). - It is also supporting pylint rules which is WIP: astral-sh/ruff#970 - Currently this PR only targets the minimal transition from pylint to ruff. Iteratively, we will extend the rules to improve the Hue codebase, add its pre-commit and play around auto-fixing errors capability. This will also help in making our codebase more PEP8 compliant. - Ruff still does not support pylint's `W0311(bad-indentation)` rule which was present earlier with pylint in Hue. We will update it later when the support lands in a future release. - Manually in local setup. (cherry picked from commit 264a267) (cherry picked from commit 8aa919d946ba8d49add26261a3789b7013ef8566) Change-Id: Ia5388cabfea5a2fa491738e86f2ce49e3dd0fe0a
- Loading branch information