Skip to content

Add pre-commit and migrate to Ruff#478

Open
savannahostrowski wants to merge 2 commits intofaster-cpython:mainfrom
savannahostrowski:ruff-and-precommit
Open

Add pre-commit and migrate to Ruff#478
savannahostrowski wants to merge 2 commits intofaster-cpython:mainfrom
savannahostrowski:ruff-and-precommit

Conversation

@savannahostrowski
Copy link
Copy Markdown
Collaborator

I figured we could start aligning with the conventions we have in CPython: replacing black + flake8 with ruff, and adding pre-commit to streamline things and catch lint failures before they hit CI.

I haven't bumped line length to 79 here (would be a fairly mechanical 30-ish file reformat) but happy to do that if we think it's worthwhile. Also haven't touched the typechecker but would be interested in opinions on whether we should migrate from pyright to mypy.

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.

1 participant