Skip to content

Commit c724740

Browse files
committed
Run prettier on the YAML
1 parent 9b6221d commit c724740

File tree

7 files changed

+55
-55
lines changed

7 files changed

+55
-55
lines changed

.github/workflows/ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-python@v4
1616
with:
17-
python-version: '3.10'
17+
python-version: "3.10"
1818
cache: pip
1919
- name: Install dependencies
20-
run:
21-
python -m pip install .[test]
20+
run: python -m pip install .[test]
2221
- name: Run lints
23-
run:
24-
./lint.sh
22+
run: ./lint.sh
2523

2624
test:
2725
runs-on: ubuntu-latest

.prettierrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false
4+
}

bench_runner/templates/_benchmark.src.yml

+20-20
Original file line numberDiff line numberDiff line change
@@ -9,63 +9,63 @@ env:
99
workflow_call:
1010
inputs:
1111
fork:
12-
description: 'Fork of cpython to benchmark'
12+
description: "Fork of cpython to benchmark"
1313
type: string
1414
ref:
15-
description: 'Branch, tag or (full) SHA commit to benchmark'
15+
description: "Branch, tag or (full) SHA commit to benchmark"
1616
type: string
1717
machine:
18-
description: 'Machine to run on'
18+
description: "Machine to run on"
1919
type: string
2020
benchmarks:
21-
description: 'Benchmarks to run (comma-separated; empty runs all benchmarks)'
21+
description: "Benchmarks to run (comma-separated; empty runs all benchmarks)"
2222
type: string
2323
pgo:
24-
description: 'Build with PGO'
24+
description: "Build with PGO"
2525
type: boolean
2626
dry_run:
27-
description: 'Dry run: Do not commit to the repo'
27+
description: "Dry run: Do not commit to the repo"
2828
type: boolean
2929
force:
30-
description: 'Rerun and replace results if commit already exists'
30+
description: "Rerun and replace results if commit already exists"
3131
type: boolean
3232
perf:
33-
description: 'Collect Linux perf profiling data (Linux only)'
33+
description: "Collect Linux perf profiling data (Linux only)"
3434
type: boolean
3535

3636
workflow_dispatch:
3737
inputs:
3838
fork:
39-
description: 'Fork of cpython to benchmark'
39+
description: "Fork of cpython to benchmark"
4040
type: string
41-
default: 'python'
41+
default: "python"
4242
ref:
43-
description: 'Branch, tag or (full) SHA commit to benchmark'
43+
description: "Branch, tag or (full) SHA commit to benchmark"
4444
type: string
45-
default: 'main'
45+
default: "main"
4646
machine:
47-
description: 'Machine to run on'
48-
default: 'linux-amd64'
47+
description: "Machine to run on"
48+
default: "linux-amd64"
4949
type: choice
5050
options:
5151
- linux-amd64
5252
- windows-amd64
5353
- darwin-arm64
5454
- all
5555
benchmarks:
56-
description: 'Benchmarks to run (comma-separated; empty runs all benchmarks)'
56+
description: "Benchmarks to run (comma-separated; empty runs all benchmarks)"
5757
type: string
5858
pgo:
59-
description: 'Build with PGO'
59+
description: "Build with PGO"
6060
type: boolean
6161
dry_run:
62-
description: 'Dry run: Do not commit to the repo'
62+
description: "Dry run: Do not commit to the repo"
6363
type: boolean
6464
force:
65-
description: 'Rerun and replace results if commit already exists'
65+
description: "Rerun and replace results if commit already exists"
6666
type: boolean
6767
perf:
68-
description: 'Collect Linux perf profiling data (Linux only)'
68+
description: "Collect Linux perf profiling data (Linux only)"
6969
type: boolean
7070

7171
jobs:
@@ -151,7 +151,7 @@ jobs:
151151
- uses: actions/checkout@v3
152152
- uses: actions/setup-python@v4
153153
with:
154-
python-version: '3.10'
154+
python-version: "3.10"
155155
cache: pip
156156
- uses: actions/checkout@v3
157157
with:

bench_runner/templates/_generate.src.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ jobs:
3737
path: cpython
3838
- uses: actions/setup-python@v4
3939
with:
40-
python-version: '3.11'
40+
python-version: "3.11"
4141
cache: pip
4242
- name: install dependencies
43-
run:
44-
python -m pip install -r requirements.txt
43+
run: python -m pip install -r requirements.txt
4544
- name: regenerate
46-
run:
47-
python -m bench_runner.scripts.generate_results ${{ inputs.force == true && '--force' || '' }}
45+
run: python -m bench_runner.scripts.generate_results ${{ inputs.force == true && '--force' || '' }}
4846
- name: Add to repo
4947
uses: EndBug/add-and-commit@v9
5048
if: ${{ !inputs.dry_run }}

bench_runner/templates/_pystats.src.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,46 @@ env:
99
workflow_dispatch:
1010
inputs:
1111
fork:
12-
description: 'Fork of cpython to benchmark'
12+
description: "Fork of cpython to benchmark"
1313
type: string
1414
default: python
1515
ref:
16-
description: 'Branch, tag or (full) SHA commit to benchmark'
16+
description: "Branch, tag or (full) SHA commit to benchmark"
1717
type: string
1818
default: main
1919
benchmarks:
20-
description: 'Benchmarks to run (comma-separated; empty runs all benchmarks)'
20+
description: "Benchmarks to run (comma-separated; empty runs all benchmarks)"
2121
type: string
2222
dry_run:
23-
description: 'Dry run: Do not commit to the repo'
23+
description: "Dry run: Do not commit to the repo"
2424
type: boolean
2525
default: false
2626
force:
27-
description: 'Rerun and replace results if commit already exists'
27+
description: "Rerun and replace results if commit already exists"
2828
type: boolean
2929
individual:
30-
description: 'Collect pystats for each individual benchmark'
30+
description: "Collect pystats for each individual benchmark"
3131
type: boolean
3232

3333
workflow_call:
3434
inputs:
3535
fork:
36-
description: 'Fork of cpython to benchmark'
36+
description: "Fork of cpython to benchmark"
3737
type: string
3838
ref:
39-
description: 'Branch, tag or (full) SHA commit to benchmark'
39+
description: "Branch, tag or (full) SHA commit to benchmark"
4040
type: string
4141
benchmarks:
42-
description: 'Benchmarks to run (comma-separated; empty runs all benchmarks)'
42+
description: "Benchmarks to run (comma-separated; empty runs all benchmarks)"
4343
type: string
4444
dry_run:
45-
description: 'Dry run: Do not commit to the repo'
45+
description: "Dry run: Do not commit to the repo"
4646
type: boolean
4747
force:
48-
description: 'Rerun and replace results if commit already exists'
48+
description: "Rerun and replace results if commit already exists"
4949
type: boolean
5050
individual:
51-
description: 'Collect pystats for each individual benchmark'
51+
description: "Collect pystats for each individual benchmark"
5252
type: boolean
5353

5454
jobs:
@@ -59,7 +59,7 @@ jobs:
5959
- uses: actions/checkout@v3
6060
- uses: actions/setup-python@v4
6161
with:
62-
python-version: '3.10'
62+
python-version: "3.10"
6363
cache: pip
6464
- uses: actions/checkout@v3
6565
with:

bench_runner/templates/_weekly.src.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: _weekly
33

44
"on":
55
schedule:
6-
- cron: '0 0 * * 0'
6+
- cron: "0 0 * * 0"
77

88
jobs:
99
weekly:

bench_runner/templates/benchmark.src.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@ name: benchmark
55
workflow_dispatch:
66
inputs:
77
fork:
8-
description: 'Fork of cpython to benchmark'
9-
default: 'python'
8+
description: "Fork of cpython to benchmark"
9+
default: "python"
1010
ref:
11-
description: 'Branch, tag or (full) SHA commit to benchmark'
12-
default: 'main'
11+
description: "Branch, tag or (full) SHA commit to benchmark"
12+
default: "main"
1313
machine:
14-
description: 'Machine to run on'
15-
default: 'linux-amd64'
14+
description: "Machine to run on"
15+
default: "linux-amd64"
1616
type: choice
1717
options:
1818
- linux-amd64
1919
- windows-amd64
2020
- darwin-arm64
2121
- all
2222
benchmarks:
23-
description: 'Benchmarks to run (comma-separated; empty runs all benchmarks)'
23+
description: "Benchmarks to run (comma-separated; empty runs all benchmarks)"
2424
type: string
2525
benchmark_base:
26-
description: 'Also benchmark the base of this commit'
26+
description: "Also benchmark the base of this commit"
2727
type: boolean
2828
default: false
2929
pystats:
30-
description: 'Also collect pystats for this commit'
30+
description: "Also collect pystats for this commit"
3131
type: boolean
3232
default: false
3333
pystats_individual:
34-
description: 'Collect pystats for each individual benchmark'
34+
description: "Collect pystats for each individual benchmark"
3535
type: boolean
3636
default: false
3737

@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v3
4949
- uses: actions/setup-python@v4
5050
with:
51-
python-version: '3.11'
51+
python-version: "3.11"
5252
cache: pip
5353
- uses: actions/checkout@v3
5454
if: ${{ inputs.benchmark_base }}

0 commit comments

Comments
 (0)