-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: support prettier 1/3 #231
Conversation
src/scicookie/{{cookiecutter.project_slug}}/docs-mkdocs/mkdocs.yaml
Outdated
Show resolved
Hide resolved
src/scicookie/{{cookiecutter.project_slug}}/docs/installation.md
Outdated
Show resolved
Hide resolved
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.
@xmnlab Can you have a look at it, please?
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.
Hi @Anavelyz!
It is usually recommended to make all the auto-formatting changes (prettier changes in this case) in a single commit. This commit's hash can then be added to .git-blame-ignore-revs
file to ensure that the git blame
is preserved. For example, see pybamm's .git-blame-ignore-revs file.
But this is totally up to us, if we want to follow this or not 🙂
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.
not sure what happened .. but it shouldn't change indentation from 2 spaces to 4.
maybe you will need to update .editorconfig as well
this is what I am using for astx: https://github.com/arxlang/astx/blob/main/.editorconfig
or just maybe update the prettierc file to define the indentation space directly there.
src/scicookie/{{cookiecutter.project_slug}}/docs-mkdocs/mkdocs.yaml
Outdated
Show resolved
Hide resolved
src/scicookie/{{cookiecutter.project_slug}}/docs/installation.md
Outdated
Show resolved
Hide resolved
Yes, .editorconfig has 4 spaces set: Line 7 in 5a6f0b4
Excuse me, I did not read the issue carefully. There it was specified |
thanks @Saransh-cpp to bring that up. tbh I am not familiar with that .. give me a bit to check that ;) |
@Saransh-cpp , I think that it makes sense. thank you again for bring that up. so the workflow would be:
is that right? if so ... @Anavelyz, let's do it together ... ping me when you have a free time for that |
We can do all of this in a single PR (in 3 separate commits) if we "Create a merge commit" instead of "Squash and merge". If we want to "Squash and merge," then yes, it will require 3 separate PRs. |
thanks for the answer @Saransh-cpp ! appreciate that |
c4593d8
to
6b1c364
Compare
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! thanks @Anavelyz
🎉 This PR is included in version 0.7.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Pull Request description
Prettier is an opinionated code formatter, ensuring that all output code conforms to a consistent style.
Fixes #180
Prettier was added to the project and to the template.
Modified files:
For the project:
For the template:
Pull Request checklists
This PR is a:
About this PR:
Author's checklist:
Reviewer's checklist
main
branch