-
Notifications
You must be signed in to change notification settings - Fork 191
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 specific prettier-commit config for prettier check, improve log message #2100
Conversation
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.
LGTM
When I test it, pre-commit always modifies modules.json
, I am wondering if we have different configuration files for prettier, one that wants
"installed_by": [
"modules"
]
and one that wants "installed_by": ["modules"]
🤔
Answering to myself, it's the |
Codecov Report
@@ Coverage Diff @@
## dev #2100 +/- ##
==========================================
- Coverage 68.01% 67.97% -0.05%
==========================================
Files 43 43
Lines 5625 5630 +5
==========================================
+ Hits 3826 3827 +1
- Misses 1799 1803 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Nice! Agreed, much preferable to #2099
This should have been fixed by #2074, no? |
Co-authored-by: Phil Ewels <phil.ewels@scilifelab.se>
Yes it is :) prettier is run on this file to fix it, this is why I was getting the message |
oh, yes, that makes sense! Will be solved by having it as |
I wasn't able to break it 👍🏻 |
(and I tried really quite hard) |
Probably preferred to #2099.
Not sure that is the best way to handle the
stdout
from pre-commit, which is a bit confusing when you don't know that we run pre-commit. It just removes: