-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #807 from consideRatio/pr/prettier-yaml-formatting
pre-commit: setup prettier to autoformat relevant YAML files
- Loading branch information
Showing
28 changed files
with
300 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,83 @@ | ||
name: 💡 General Issue | ||
description: A general template for many kinds of issues. | ||
body: | ||
|
||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: | | ||
Describe what you are proposing, or the question you're asking. Provide as much context as possible and link to related issues and/or pull requests. | ||
This section should contain "what" you are proposing. | ||
🐛 If this issue is related to a bug, include information about how to reproduce it and add the `bug` label. | ||
✨ If this issue is an enhancement or feature, add the `enhancement` label. | ||
✅ If this issue is a task to complete, add the `task` label. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: value | ||
attributes: | ||
label: Value / benefit | ||
description: | | ||
What is the value in resolving this issue, and who will benefit from it? Include any information that could help us prioritize the issue. | ||
This section should contain "why" this issue should be resolved. | ||
✨ If this is for a new feature or enhancement, consider adding [user stories](https://www.atlassian.com/agile/project-management/user-stories). | ||
🐛 If this is for a bug or problem, estimate the severity and scale of the impact. | ||
placeholder: | | ||
- Many people have requested this feature, as seen in... | ||
- This would facilitate XXX which is common for our hub users | ||
- This problem affects anybody that does XXX on a hub | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: implementation | ||
attributes: | ||
label: Implementation details | ||
description: | | ||
Anything that will help others understand how this issue could be addressed. Where appropriate, note locations in a codebase where a change would need to be made, or other considerations that should be taken. | ||
This section should contain "how" this issue should be resolved. | ||
_If you can't think of anything then just leave this blank and we can fill it in later! This can be filled in as we understand more about an issue._ | ||
placeholder: | | ||
- This change would be probably need to be over here... | ||
- The best way to do this would be... | ||
- There are a few ways to do this, we should choose between... | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: tasks | ||
attributes: | ||
label: Tasks to complete | ||
description: | | ||
Any concrete tasks that should be completed to resolve this issue. | ||
The more specific the better. If issues have lots of complex tasks associated with them, consider breaking them up into separate issues with cross-links. | ||
_If you can't think of anything then just leave this blank and we can fill it in later! This can be filled in as we understand more about an issue._ | ||
placeholder: | | ||
- [ ] Discuss and decide on what to do... | ||
- [ ] Implement partial feature A... | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: updates | ||
attributes: | ||
label: Updates | ||
description: | | ||
To avoid that others have to read through the full thread of comments, please update the initial issue with important updates (e.g. decisions taken) regularly. You can update any of the sections above directly (this is encouraged!) or add new information below in this new section. | ||
_If you can't think of anything then just leave this blank and we can fill it in later! This can be filled in as we understand more about an issue._ | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: | | ||
Describe what you are proposing, or the question you're asking. Provide as much context as possible and link to related issues and/or pull requests. | ||
This section should contain "what" you are proposing. | ||
🐛 If this issue is related to a bug, include information about how to reproduce it and add the `bug` label. | ||
✨ If this issue is an enhancement or feature, add the `enhancement` label. | ||
✅ If this issue is a task to complete, add the `task` label. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: value | ||
attributes: | ||
label: Value / benefit | ||
description: | | ||
What is the value in resolving this issue, and who will benefit from it? Include any information that could help us prioritize the issue. | ||
This section should contain "why" this issue should be resolved. | ||
✨ If this is for a new feature or enhancement, consider adding [user stories](https://www.atlassian.com/agile/project-management/user-stories). | ||
🐛 If this is for a bug or problem, estimate the severity and scale of the impact. | ||
placeholder: | | ||
- Many people have requested this feature, as seen in... | ||
- This would facilitate XXX which is common for our hub users | ||
- This problem affects anybody that does XXX on a hub | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: implementation | ||
attributes: | ||
label: Implementation details | ||
description: | | ||
Anything that will help others understand how this issue could be addressed. Where appropriate, note locations in a codebase where a change would need to be made, or other considerations that should be taken. | ||
This section should contain "how" this issue should be resolved. | ||
_If you can't think of anything then just leave this blank and we can fill it in later! This can be filled in as we understand more about an issue._ | ||
placeholder: | | ||
- This change would be probably need to be over here... | ||
- The best way to do this would be... | ||
- There are a few ways to do this, we should choose between... | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: tasks | ||
attributes: | ||
label: Tasks to complete | ||
description: | | ||
Any concrete tasks that should be completed to resolve this issue. | ||
The more specific the better. If issues have lots of complex tasks associated with them, consider breaking them up into separate issues with cross-links. | ||
_If you can't think of anything then just leave this blank and we can fill it in later! This can be filled in as we understand more about an issue._ | ||
placeholder: | | ||
- [ ] Discuss and decide on what to do... | ||
- [ ] Implement partial feature A... | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: updates | ||
attributes: | ||
label: Updates | ||
description: | | ||
To avoid that others have to read through the full thread of comments, please update the initial issue with important updates (e.g. decisions taken) regularly. You can update any of the sections above directly (this is encouraged!) or add new information below in this new section. | ||
_If you can't think of anything then just leave this blank and we can fill it in later! This can be filled in as we understand more about an issue._ | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ jobs: | |
run: pip install flake8 | ||
- name: Run flake8 | ||
run: | | ||
flake8 deployer/ docs/ | ||
flake8 deployer/ docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# pre-commit is a tool to perform a predefined set of tasks manually and/or | ||
# automatically before git commits are made. | ||
# | ||
# Config reference: https://pre-commit.com/#pre-commit-configyaml---top-level | ||
# | ||
# Common tasks | ||
# | ||
# - Run on all files: pre-commit run --all-files | ||
# - Register git hooks: pre-commit install --install-hooks | ||
# | ||
repos: | ||
# FIXME: Consider adding more, for example by looking at those configured for | ||
# TLJH in https://github.com/jupyterhub/the-littlest-jupyterhub/blob/main/.pre-commit-config.yaml | ||
|
||
# Autoformat: markdown, yaml | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.4.1 | ||
hooks: | ||
- id: prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Helm chart's templates aren't pure YAML files | ||
**/templates/ | ||
|
||
# It would be trouble if we had two automatic formatters on the same files. This | ||
# could happen if we would auto-format the sops generated files with prettier. | ||
secrets/**/* | ||
**/secrets.yaml | ||
!secrets/config/hubs/schema.yaml | ||
|
||
# To create a minimal change suggestion, prettier was introduced to auto-format | ||
# the YAML files only. It is absolutely reasonable to auto-format markdown files | ||
# and json files as well, but for now, let's make prettier only auto-format | ||
# YAML. | ||
**/*.md | ||
**/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.