Skip to content

Commit e7bd0d9

Browse files
authored
Formatting updates for yaml and markdown (#2784)
Prettier supports .yml and .md files nicely these days, so there really isn't a need for exceptions on those anymore. This removes a couple folders from our .prettierignore and fixes the resulting formatting to confirm to spec. These are formatting only changes, no behavior changes (other than removing folders from the ignore file).
1 parent 2ad7e86 commit e7bd0d9

File tree

10 files changed

+529
-517
lines changed

10 files changed

+529
-517
lines changed

.ado/publish.yml

Lines changed: 478 additions & 480 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
4+
title: ""
55
labels: bug, needs triage
6-
assignees: ''
6+
assignees: ""
77
---
88

99
**Describe the bug**
1010

11-
Describe what the unexpected behavior or issue is.
11+
Describe what the unexpected behavior or issue is.
1212
Please file a single issue per bug instead of enumerating multiple items.
1313

1414
**To Reproduce**
1515

1616
Steps to reproduce the behavior:
17+
1718
1. Open or go to '...'
1819
2. Type or click on '....'
1920
3. See error

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: ""
55
labels: enhancement, needs triage
6-
assignees: ''
6+
assignees: ""
77
---
88

99
**Is your feature request related to a problem? Please describe.**

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
This repo contains the Microsoft Quantum Development Kit (QDK), which provides tooling for the Q# language. Q# is an open-source programming language designed for developing and running quantum algorithms. This repo is publicly available at https://github.com/microsoft/qsharp .
66

7-
87
## Architecture
98

109
All internal source code for the compiler and related tooling has been moved under the `source/` directory at the repository root. This does not include Q# libraries (`library/`), samples (`samples/`), katas (`katas/`), or any standard files and folders typically found at the root of a repository (such as configuration, documentation, or build scripts).
@@ -47,6 +46,7 @@ Most of the core components are implemented in Rust. These components are packag
4746
- **wasm/**: WebAssembly bindings for core components
4847

4948
**Build & Release**
49+
5050
- **docker/**: Docker container configurations
5151

5252
**Python**
@@ -101,5 +101,5 @@ Most of the core components are implemented in Rust. These components are packag
101101
- `npm test` from the `vscode/` directory runs the integration tests.
102102
- `npm test -- --suite=language-service`: Run only the `language-service` test suite
103103
- Tests use the VS Code for Web testing framework (`@vscode/test-web`), which uses `playwright` under the covers to automate headless Chrome.
104-
- `mocha` interface is used to declare tests, `chai` for asserts. No mocking library is used. Do *not* add dependencies to the test suite.
104+
- `mocha` interface is used to declare tests, `chai` for asserts. No mocking library is used. Do _not_ add dependencies to the test suite.
105105
- Tests run in the real VS Code environment, in the extension host, which means they can directly interact with the VS Code API.

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
pull_request:
55
branches:
66
- main
7-
- 'feature/**'
8-
- 'release/**'
7+
- "feature/**"
8+
- "release/**"
99
merge_group:
1010
workflow_dispatch:
1111

@@ -187,7 +187,16 @@ jobs:
187187

188188
status-check:
189189
name: Status Check
190-
needs: [format, clippy, web-check, build, unit-tests, format-qsc, integration-tests]
190+
needs:
191+
[
192+
format,
193+
clippy,
194+
web-check,
195+
build,
196+
unit-tests,
197+
format-qsc,
198+
integration-tests,
199+
]
191200
runs-on: ubuntu-latest
192201
if: failure()
193202
steps:

.github/workflows/devskim.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: DevSkim
22

33
on:
44
pull_request:
5-
branches: [ main ]
5+
branches: [main]
66
merge_group:
77
workflow_dispatch:
88
schedule:
99
# set schedule to run at 2AM PT on Saturdays
10-
- cron: '0 9 * * Sat'
10+
- cron: "0 9 * * Sat"
1111

1212
jobs:
1313
lint:

.github/workflows/fuzz.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
name: fuzz
22
run-name: Fuzz
33
env:
4-
OWNER_RDPATH: ./source # Rel path to the dir that contains the fuzzing infra (contains "fuzz" dir).
5-
DURATION_SEC: 7200 # Fuzzing run duration in seconds.
6-
STDERR_LOG_FNAME: fuzz.stderr.log # File name to redirect the fuzzing run's stderr to.
7-
TMIN_LOG_FNAME: fuzz.tmin.log # File name to redirect the fuzzing input minimization log to.
8-
GH_ISSUE_TEMPLATE_RFPATH: .github/ISSUE_TEMPLATE/fuzz_bug_report.md
9-
# GitHub issue template rel file path.
10-
ARTIFACTS_RDPATH: fuzz/artifacts # Fuzzing artifacts rel dir path.
11-
SEEDS_RDPATH: fuzz/seed_inputs # Fuzzing seed inputs rel dir path.
12-
SEEDS_FNAME: list.txt # Fuzzing seed inputs list file name.
4+
OWNER_RDPATH: ./source # Rel path to the dir that contains the fuzzing infra (contains "fuzz" dir).
5+
DURATION_SEC: 7200 # Fuzzing run duration in seconds.
6+
STDERR_LOG_FNAME: fuzz.stderr.log # File name to redirect the fuzzing run's stderr to.
7+
TMIN_LOG_FNAME: fuzz.tmin.log # File name to redirect the fuzzing input minimization log to.
8+
GH_ISSUE_TEMPLATE_RFPATH:
9+
.github/ISSUE_TEMPLATE/fuzz_bug_report.md
10+
# GitHub issue template rel file path.
11+
ARTIFACTS_RDPATH: fuzz/artifacts # Fuzzing artifacts rel dir path.
12+
SEEDS_RDPATH: fuzz/seed_inputs # Fuzzing seed inputs rel dir path.
13+
SEEDS_FNAME: list.txt # Fuzzing seed inputs list file name.
1314
on:
14-
workflow_dispatch: # Manual runs.
15+
workflow_dispatch: # Manual runs.
1516
push:
1617
branches:
17-
- main # Development runs against main branch.
18+
- main # Development runs against main branch.
1819
paths:
19-
- 'source/compiler/**' # Run if the compiler was changed.
20-
- 'source/fuzz/**' # Run if the fuzzing infra was changed.
21-
- '.github/ISSUE_TEMPLATE/fuzz_bug_report.md'
22-
# Run if the GitHub issue template was changed.
23-
- '.github/workflows/fuzz.yml' # Run if the workflow itself was changed.
24-
- '!source/compiler/qsc_eval/**' # Exclude the qsc_eval dir.
25-
- '!source/compiler/qsc_codegen/**' # Exclude the qsc_codegen dir.
20+
- "source/compiler/**" # Run if the compiler was changed.
21+
- "source/fuzz/**" # Run if the fuzzing infra was changed.
22+
- ".github/ISSUE_TEMPLATE/fuzz_bug_report.md"
23+
# Run if the GitHub issue template was changed.
24+
- ".github/workflows/fuzz.yml" # Run if the workflow itself was changed.
25+
- "!source/compiler/qsc_eval/**" # Exclude the qsc_eval dir.
26+
- "!source/compiler/qsc_codegen/**" # Exclude the qsc_codegen dir.
2627

2728
jobs:
2829
fuzz:
2930
name: Fuzzing
3031
strategy:
3132
fail-fast: false
3233
matrix:
33-
os: [ubuntu-latest] # Fuzzing is not supported on Win. The macos is temporarily removed
34-
# because of low availability.
34+
os:
35+
[ubuntu-latest] # Fuzzing is not supported on Win. The macos is temporarily removed
36+
# because of low availability.
3537
target_name: [qsharp, qasm]
3638

3739
runs-on: ${{ matrix.os }}
@@ -211,7 +213,7 @@ jobs:
211213
if: failure()
212214
uses: JasonEtco/create-an-issue@v2
213215
env:
214-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
216+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
215217
WORKFLOW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
216218
with:
217219
filename: ${{ env.GH_ISSUE_TEMPLATE_RFPATH }}

.github/workflows/publish-playground.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
components: ${{ env.RUST_TOOLCHAIN_COMPONENTS }}
4343
- uses: actions/setup-python@v4
4444
with:
45-
python-version: '3.11'
45+
python-version: "3.11"
4646
- uses: actions/setup-node@v3
4747
with:
48-
node-version: '22.14.0'
48+
node-version: "22.14.0"
4949
- uses: Swatinem/rust-cache@v2
5050
- name: Prereqs
5151
run: python ./prereqs.py --install

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package-lock.json
22
__pycache__/
3-
.ado/
43
.cargo/
54
.devcontainer/
6-
.github/
75
.pytest_cache/
86
.vscode/
97
.vscode-test-web/

.vscode/settings.shared.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,9 @@
3939
"[typescriptreact]": {
4040
"editor.defaultFormatter": "esbenp.prettier-vscode",
4141
"editor.formatOnSave": true
42+
},
43+
"[yaml]": {
44+
"editor.defaultFormatter": "esbenp.prettier-vscode",
45+
"editor.formatOnSave": true
4246
}
4347
}

0 commit comments

Comments
 (0)