Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit: bring back some checks #33196

Merged
merged 36 commits into from
Aug 7, 2024
Merged

pre-commit: bring back some checks #33196

merged 36 commits into from
Aug 7, 2024

Conversation

maxime-desroches
Copy link
Contributor

@maxime-desroches maxime-desroches commented Aug 6, 2024

Will run the checks against all staged + committed changes since origin/master

adds ruff, mypy, large files, shebang, codespell

can also do cool stuff like op lint selfdrive/car/honda/* or op lint selfdrive/ui/ui.py

@maxime-desroches maxime-desroches changed the title pre-commit: bring back some check pre-commit: bring back some checks Aug 6, 2024
@sshane
Copy link
Contributor

sshane commented Aug 6, 2024

If the first fails, do the rest run?

@maxime-desroches
Copy link
Contributor Author

@sshane Currently not, but I can make it that way if you think it would help your workflow

@sshane
Copy link
Contributor

sshane commented Aug 6, 2024

It's fine for now, but would be nice to show a summary like pre-commit later on

@commaai commaai deleted a comment from github-actions bot Aug 7, 2024
@commaai commaai deleted a comment from github-actions bot Aug 7, 2024
@commaai commaai deleted a comment from github-actions bot Aug 7, 2024
@commaai commaai deleted a comment from github-actions bot Aug 7, 2024
@commaai commaai deleted a comment from github-actions bot Aug 7, 2024
@commaai commaai deleted a comment from github-actions bot Aug 7, 2024
@maxime-desroches maxime-desroches marked this pull request as ready for review August 7, 2024 04:17
@maxime-desroches maxime-desroches merged commit 30467b4 into master Aug 7, 2024
20 checks passed
@maxime-desroches maxime-desroches deleted the new_pre_commit branch August 7, 2024 04:39
maxime-desroches added a commit that referenced this pull request Aug 7, 2024
maxime-desroches added a commit that referenced this pull request Aug 7, 2024
Edison-CBS pushed a commit to Edison-CBS/openpilot that referenced this pull request Sep 15, 2024
* add this

* add this

* nice ...

* 120

* remove

* no remote

* 0

* this

* no submodules

* like this

* try this

* validate

* like this

* split

* pass files

* no par

* check exist

* no build

* fix

* 24.04

* default

* test failure

* continue

* actually fail

* clean

* import

* fix

* line

* mypy

* clean

* simpler

* final

* better

* final clean

* not true
old-commit-hash: 30467b4
Edison-CBS pushed a commit to Edison-CBS/openpilot that referenced this pull request Sep 15, 2024
…33216)

This reverts commit 4b356147185aa1d772947e4ec7b54a3e6e523f9d.
old-commit-hash: 3af7747
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