-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add pre-commit checks and fix its complaints #547
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
rev: v4.5.0 | ||
hooks: | ||
- id: check-added-large-files | ||
args: ["--maxkb", "5000"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's currently set to 5MB
@egeakman this is amazing, can we add some instructions to the readme for installing pre-commit? Also, maybe it is worth adding https://pre-commit.ci/ to this repo, so we are sure we always run it 😊 we should also probably add prettier! |
I think it's a good idea to add pre-commit.ci here. I can't add it though, maybe a repository admin can? |
Prettier's result is pretty noisy, it changes ~43 files. I'll push the changes, but we probably should check the preview carefully. |
@artcz would you be ok with pre-commit ci? we could do a github action, but pre-commit ci is faster and free 😊 |
Prettier somehow breaks it. It turns;
and
Oh, and it works in dev build, but not in prod build |
@patrick91 hi! I reduced the amount of changed/affected files by ~half.
How should we proceed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
Closes #497
We can change the
maxkb
argument to our needs.Added some handy checks as well.
Since we are using
pre-commit
, we might want to add that to arequirements-dev.txt
.