8000 Apply prettier to css, html, js, md, ts, and yml (#1249) · Conan520/pyscript@08f34f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08f34f7

Browse files
Apply prettier to css, html, js, md, ts, and yml (pyscript#1249)
* Apply prettier to css, js, html, md, ts, and yml As a followup I will add prettier to the .pre-commit config. This patch is 100% generated by prettier. I used a forked version of prettier that understands the py-script tag. See https://github.com/hoodmane/pyscript-prettier-precommit for more info. * Apply old pre-commit * Revert some problems * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert some changes * More changes * Fix pre-commit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7ffe6a5 commit 08f34f7

File tree

108 files changed

+4770
-4001
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+4770
-4001
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,62 @@ name: Bug Report
22
description: Create a report to help us improve
33
labels: ["type: bug", "needs-triage"]
44
body:
5-
- type: markdown
5+
- type: markdown
66
attributes:
7-
value: |
8-
Thanks for helping PyScript! 🐍
7+
value: |
8+
Thanks for helping PyScript! 🐍
99
10-
Going through bugs and issues takes up a lot of time, so please be so kind and take a few minutes to fill out all the areas to the best of your ability.
10+
Going through bugs and issues takes up a lot of time, so please be so kind and take a few minutes to fill out all the areas to the best of your ability.
1111
12-
There will always be more issues than there is time to do them, and so we will need to selectively close issues that don't provide enough information, so we can focus our time on helping people like you who fill out the issue form completely. Thank you for your collaboration!
12+
There will always be more issues than there is time to do them, and so we will need to selectively close issues that don't provide enough information, so we can focus our time on helping people like you who fill out the issue form completely. Thank you for your collaboration!
1313
14-
There are also already a lot of open issues, so please take 2 minutes and search through existing ones to see if what you are experiencing already exists
14+
There are also already a lot of open issues, so please take 2 minutes and search through existing ones to see if what you are experiencing already exists
1515
16-
Thanks for helping PyScript be amazing. We are nothing without people like you helping build a better community 💐!
17-
- type: checkboxes
16+
Thanks for helping PyScript be amazing. We are nothing without people like you helping build a better community 💐!
17+
- type: checkboxes
1818
id: checks
1919
attributes:
20-
label: Checklist
21-
description: Please confirm and check all the following options.
22-
options:
23-
- label: I added a descriptive title
24-
required: true
25-
- label: I searched for other issues and couldn't find a solution or duplication
26-
required: true
27-
- label: I already searched in Google and didn't find any good information or help
28-
required: true
29-
- type: textarea
20+
label: Checklist
21+
description: Please confirm and check all the following options.
22+
options:
23+
- label: I added a descriptive title
24+
required: true
25+
- label: I searched for other issues and couldn't find a solution or duplication
26+
required: true
27+
- label: I already searched in Google and didn't find any good information or help
28+
required: true
29+
- type: textarea
3030
id: what-happened
3131
attributes:
32-
label: What happened?
33-
description: And what should have happened instead? This really helps everyone review quicker and greatly increases the chance that someone can get around to solve your issue
34-
placeholder: Tell us what you see!
32+
label: What happened?
33+
description: And what should have happened instead? This really helps everyone review quicker and greatly increases the chance that someone can get around to solve your issue
34+
placeholder: Tell us what you see!
3535
validations:
36-
required: true
37-
- type: dropdown
36+
required: true
37+
- type: dropdown
3838
id: browsers
3939
attributes:
40-
label: What browsers are you seeing the problem on? (if applicable)
41-
multiple: true
42-
options:
43-
- Firefox
44-
- Chrome
45-
- Safari
46-
- Microsoft Edge
47-
- Other
40+
label: What browsers are you seeing the problem on? (if applicable)
41+
multiple: true
42+
options:
43+
- Firefox
44+
- Chrome
45+
- Safari
46+
- Microsoft Edge
47+
- Other
4848
validations:
49-
required: false
50-
- type: textarea
49+
required: false
50+
- type: textarea
5151
id: list
5252
attributes:
53-
label: Console info
54-
description: |
55-
If there are errors in your browser console then its helpful to be able to troubleshoot.
56-
- Chrome , Firefox, and Edge: Right-click on the page and select *Inspect*. Alternatively you can press F12 on your keyboard.
57-
- Safari: Find instructions [here](https://support.apple.com/guide/safari/use-the-developer-tools-in-the-develop-menu-sfri20948/mac).
58-
render: shell
59-
- type: textarea
53+
label: Console info
54+
description: |
55+
If there are errors in your browser console then its helpful to be able to troubleshoot.
56+
- Chrome , Firefox, and Edge: Right-click on the page and select *Inspect*. Alternatively you can press F12 on your keyboard.
57+
- Safari: Find instructions [here](https://support.apple.com/guide/safari/use-the-developer-tools-in-the-develop-menu-sfri20948/mac).
58+
render: shell
59+
- type: textarea
6060
id: context
6161
attributes:
62-
label: Additional Context
63-
description: Add any additional context information or screenshots you think are useful.
62+
label: Additional Context
63+
description: Add any additional context information or screenshots you think are useful.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Feature Proposals
3+
- name: Feature Proposals
44
url: https://github.com/pyscript/pyscript/discussions/new?category=proposals
55
about: Create a feature request to make PyScript even better
6-
- name: Questions
6+
- name: Questions
77
url: https://github.com/pyscript/pyscript/discussions/new?category=q-a
88
about: For questions or discussions about pyscript

.github/workflows/build-unstable.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
MINICONDA_PYTHON_VERSION: py38
2929
MINICONDA_VERSION: 4.11.0
3030
steps:
31-
3231
- name: Checkout
3332
uses: actions/checkout@v3
3433

@@ -42,7 +41,7 @@ jobs:
4241
env:
4342
cache-name: cache-node-modules
4443
with:
45-
# npm cache files are stored in `~/.npm` on Linux/macOS
44+
# npm cache files are stored in `~/.npm` on Linux/macOS
4645
path: ~/.npm
4746
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
4847
restore-keys: |
@@ -97,7 +96,7 @@ jobs:
9796
name: pyscript
9897
path: ./build/
9998

100-
# Deploy to S3
99+
# Deploy to S3
101100
- name: Configure AWS credentials
102101
uses: aws-actions/configure-aws-credentials@v1.6.1
103102
with:

.github/workflows/docs-release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
env:
1414
SPHINX_HTML_BASE_URL: https://docs.pyscript.net/
1515
steps:
16-
1716
- name: Checkout
1817
uses: actions/checkout@v3
1918
with:
@@ -40,7 +39,7 @@ jobs:
4039
name: pyscript-docs-${{ github.ref_name }}
4140
path: docs/_build/html/
4241

43-
# Deploy to S3
42+
# Deploy to S3
4443
- name: Configure AWS credentials
4544
uses: aws-actions/configure-aws-credentials@v1.6.1
4645
with:
@@ -53,11 +52,11 @@ jobs:
5352
- name: Sync to S3
5453
run: aws s3 sync --quiet ./docs/_build/html/ s3://docs.pyscript.net/${{ github.ref_name }}/
5554

56-
# Make sure to remove the latest folder so we sync the full docs upon release
55+
# Make sure to remove the latest folder so we sync the full docs upon release
5756
- name: Delete latest directory
5857
run: aws s3 rm --recursive s3://docs.pyscript.net/latest/
5958

60-
# Note that the files are the same as above, but we want to have folders with
61-
# /<tag name>/ AND /latest/ which latest will always point to the latest release
59+
# Note that the files are the same as above, but we want to have folders with
60+
# /<tag name>/ AND /latest/ which latest will always point to the latest release
6261
- name: Sync to /latest
6362
run: aws s3 sync --quiet ./docs/_build/html/ s3://docs.pyscript.net/latest/

.github/workflows/docs-review.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
env:
2727
SPHINX_HTML_BASE_URL: https://docs.pyscript.net/
2828
steps:
29-
3029
- name: Checkout
3130
uses: actions/checkout@v3
3231
with:
@@ -53,7 +52,7 @@ jobs:
5352
name: pyscript-docs-review-${{ github.event.number }}
5453
path: docs/_build/html/
5554

56-
# Deploy to S3
55+
# Deploy to S3
5756
- name: Configure AWS credentials
5857
uses: aws-actions/configure-aws-credentials@v1.6.1
5958
with:

.github/workflows/docs-unstable.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
env:
1717
SPHINX_HTML_BASE_URL: https://docs.pyscript.net/
1818
steps:
19-
2019
- name: Checkout
2120
uses: actions/checkout@v3
2221
with:
@@ -43,13 +42,13 @@ jobs:
4342
name: pyscript-docs-latest
4443
path: docs/_build/html/
4544

46-
# Deploy to S3
45+
# Deploy to S3
4746
- name: Configure AWS credentials
4847
uses: aws-actions/configure-aws-credentials@v1.6.1
4948
with:
5049
aws-region: ${{ secrets.AWS_REGION }}
5150
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
5251

53-
# Sync will only copy changed files
52+
# Sync will only copy changed files
5453
- name: Sync to S3
5554
run: aws s3 sync --quiet ./docs/_build/html/ s3://docs.pyscript.net/unstable/

.github/workflows/prepare-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: '[CI] Prepare Release'
33
on:
44
push:
55
tags:
6-
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9]+' # YYYY.MM.MICRO
6+
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9]+' # YYYY.MM.MICRO
77

88
env:
99
MINICONDA_PYTHON_VERSION: py38
@@ -17,7 +17,6 @@ jobs:
1717
build:
1818
runs-on: ubuntu-latest
1919
steps:
20-
2120
- name: Checkout
2221
uses: actions/checkout@v3
2322

@@ -31,7 +30,7 @@ jobs:
3130
env:
3231
cache-name: cache-node-modules
3332
with:
34-
# npm cache files are stored in `~/.npm` on Linux/macOS
33+
# npm cache files are stored in `~/.npm` on Linux/macOS
3534
path: ~/.npm
3635
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
3736
restore-keys: |

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
env:
3333
cache-name: cache-node-modules
3434
with:
35-
# npm cache files are stored in `~/.npm` on Linux/macOS
35+
# npm cache files are stored in `~/.npm` on Linux/macOS
3636
path: ~/.npm
3737
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
3838
restore-keys: |
@@ -49,7 +49,7 @@ jobs:
4949
- name: Build and Test
5050
run: make test
5151

52-
# Upload to S3
52+
# Upload to S3
5353
- name: Configure AWS credentials
5454
uses: aws-actions/configure-aws-credentials@v1.6.1
5555
with:

.github/workflows/sync-examples.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ jobs:
1515
working-directory: examples
1616

1717
steps:
18-
19-
# Deploy to S3
18+
# Deploy to S3
2019
- name: Checkout
2120
uses: actions/checkout@v3
2221
- name: Configure AWS credentials
@@ -25,5 +24,5 @@ jobs:
2524
aws-region: ${{ secrets.AWS_REGION }}
2625
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
2726
- name: Sync to S3
28-
# Sync outdated or new files, delete ones no longer in source
27+
# Sync outdated or new files, delete ones no longer in source
2928
run: aws s3 sync --quiet --delete . s3://pyscript.net/examples/ # Sync directory, delete what is not in source

CONTRIBUTING.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ Thank you for wanting to contribute to the PyScript project!
44

55
## Table of contents
66

7-
* [Code of Conduct](#code-of-conduct)
8-
* [Contributing](#contributing)
9-
* [Reporting bugs](#reporting-bugs)
10-
* [Reporting security issues](#reporting-security-issues)
11-
* [Asking questions](#asking-questions)
12-
* [Setting up your local environment and developing](#setting-up-your-local-environment-and-developing)
13-
* [Places to start](#places-to-start)
14-
* [Setting up your local environment and developing](#setting-up-your-local-environment-and-developing)
15-
* [License terms for contributions](#license-terms-for-contributions)
16-
* [Becoming a maintainer](#becoming-a-maintainer)
17-
* [Trademarks](#trademarks)
7+
- [Code of Conduct](#code-of-conduct)
8+
- [Contributing](#contributing)
9+
- [Reporting bugs](#reporting-bugs)
10+
- [Reporting security issues](#reporting-security-issues)
11+
- [Asking questions](#asking-questions)
12+
- [Setting up your local environment and developing](#setting-up-your-local-environment-and-developing)
13+
- [Places to start](#places-to-start)
14+
- [Setting up your local environment and developing](#setting-up-your-local-environment-and-developing)
15+
- [License terms for contributions](#license-terms-for-contributions)
16+
- [Becoming a maintainer](#becoming-a-maintainer)
17+
- [Trademarks](#trademarks)
1818

1919
# Code of Conduct
2020

@@ -28,10 +28,10 @@ Bugs are tracked on the [project issues page](https://github.com/pyscript/pyscri
2828

2929
## Creating useful issues
3030

31-
* Use a clear and descriptive title.
32-
* Describe the specific steps that reproduce the problem with as many details as possible so that someone can verify the issue.
33-
* Describe the behavior you observed, and the behavior you had expected.
34-
* Include screenshots if they help make the issue clear.
31+
- Use a clear and descriptive title.
32+
- Describe the specific steps that reproduce the problem with as many details as possible so that someone can verify the issue.
33+
- Describe the behavior you observed, and the behavior you had expected.
34+
- Include screenshots if they help make the issue clear.
3535

3636
## Reporting security issues
3737

@@ -45,10 +45,10 @@ If you have questions about the project, using PyScript, or anything else, pleas
4545

4646
If you would like to contribute to PyScript, but you aren't sure where to begin, here are some suggestions.
4747

48-
* **Read over the existing documentation.** Are there things missing, or could they be clearer? Make some changes/additions to those documents.
49-
* **Review the open issues.** Are they clear? Can you reproduce them? You can add comments, clarifications, or additions to those issues. If you think you have an idea of how to address the issue, submit a fix!
50-
* **Look over the open pull requests.** Do you have comments or suggestions for the proposed changes? Add them.
51-
* **Check out the examples.** Is there a use case that would be good to have sample code for? Create an example for it.
48+
- **Read over the existing documentation.** Are there things missing, or could they be clearer? Make some changes/additions to those documents.
49+
- **Review the open issues.** Are they clear? Can you reproduce them? You can add comments, clarifications, or additions to those issues. If you think you have an idea of how to address the issue, submit a fix!
50+
- **Look over the open pull requests.** Do you have comments or suggestions for the proposed changes? Add them.
51+
- **Check out the examples.** Is there a use case that would be good to have sample code for? Create an example for it.
5252

5353
## Setting up your local environment and developing
5454

@@ -69,5 +69,6 @@ Contributors are invited to be maintainers of the project by demonstrating good
6969
The Project abides by the Organization's [trademark policy](https://github.com/pyscript/governance/blob/main/TRADEMARKS.md).
7070

7171
---
72+
7273
Part of MVG-0.1-beta.
7374
Made with love by GitHub. Licensed under the [CC-BY 4.0 License](https://creativecommons.org/licenses/by-sa/4.0/).

0 commit comments

Comments
 (0)
0