Skip to content

Added ruff style guide, pre-commit hook and CI linting and formatting checks#4

Open
btijs wants to merge 3 commits into
pandora-tee:mainfrom
btijs:ruff
Open

Added ruff style guide, pre-commit hook and CI linting and formatting checks#4
btijs wants to merge 3 commits into
pandora-tee:mainfrom
btijs:ruff

Conversation

@btijs

@btijs btijs commented Nov 1, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@btijs

btijs commented Nov 1, 2025

Copy link
Copy Markdown
Contributor Author

Should I also add a small section in the README on how to set up ruff and the commit hooks?

@jovanbulck

Copy link
Copy Markdown
Contributor

Thanks for the PR! sorry for the delay following up on this

ideally could you git rebase -i and force-push to clean up the commit history into a couple of commits?

Should I also add a small section in the README on how to set up ruff and the commit hooks?

that would be great yes!

IIUC if someone does not setup the pre-commit hook and pushes the CI should catch that, right?

@btijs

btijs commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

IIUC if someone does not setup the pre-commit hook and pushes the CI should catch that, right?

Yes, exactly! There are two parts in the CI, the Sancus tests and the ruff tests. The ruff part checks for linting error (ruff check) and for formatting error (ruff format --check)

@btijs

btijs commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

ideally could you git rebase -i and force-push to clean up the commit history into a couple of commits?

Should I clean up the history into a single commit, or a couple (e.g. ruff linting, ruff CI and readme update)?

@jovanbulck

Copy link
Copy Markdown
Contributor

Should I clean up the history into a single commit, or a couple (e.g. ruff linting, ruff CI and readme update)?

Thanks! a couple of commits by topic would prob be best and cleanest 👍

Autofix ruff styles

Fixed W rules

Fixed unused variables

Formatted

Removed * imports

Manually fixed most errors

Fixed bare except

Added pre-commit hook

Removed angr-platforms from git

update requirements: add pre-commit and ruff

ruff: fix linter warnings

Added ruff linting and formatting guidelines and pre-commit-hook
Changed from applying formatting to only check the formatting in pre-commit hook

Test invalid ruff formatting

Fix invalid ruff formatting

Added ruff CI
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