Skip to content

chore: Update formatting and linting#85

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits intomainfrom
cedric/ruff-precommit-not-formatting
Mar 17, 2026
Merged

chore: Update formatting and linting#85
Abhijeet Prasad (AbhiPrasad) merged 2 commits intomainfrom
cedric/ruff-precommit-not-formatting

Conversation

@viadezo1er
Copy link
Copy Markdown
Contributor

@viadezo1er Cedric / ViaDézo1er (viadezo1er) commented Mar 16, 2026

Update formatters and linters
Remove unused isort, flake8, black config files and import/dependencies
Remove .prettierignore (JS config in python repo)
Add unused isort config to ruff check config
Add ruff format step in pre-commit

The first commit has the config file changes the second commit is just a make fixup.
So to review the PR I highly recommend looking at the first commit, and only afterward briefly look at the second commit.

Pylint role is unchanged. Maybe it should also be updated? It would make make (py)lint would be much faster.
Pylint can't be replaced by ruff as of now.

Remove unused isort, flake8, black config files and import/dependencies
Remove .prettierignore (JS config in python repo)
Add unused isort config to ruff check config
Add ruff format step in pre-commit
Done with the updated make fixup
@viadezo1er Cedric / ViaDézo1er (viadezo1er) force-pushed the cedric/ruff-precommit-not-formatting branch from da1787d to a2d73de Compare March 16, 2026 20:29
@viadezo1er
Copy link
Copy Markdown
Contributor Author

astral-sh/ruff#970 Not all pylint error rules are implemented so ruff can't replace everything pylint does at the moment, especially considering we use pylint's detection of E0401 (not yet implemented in ruff) as indicated by this comment in py/noxfile.py:296# pylint needs everything so we don't trigger missing import errors.

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title Update formatting and linting chore: Update formatting and linting Mar 17, 2026
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit fc2d5fe into main Mar 17, 2026
33 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the cedric/ruff-precommit-not-formatting branch March 17, 2026 16:09
@AbhiPrasad
Copy link
Copy Markdown
Member

merged in your PR so we can deal with merge conflicts in other prs more easily.

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