Skip to content

Commit 5c75c33

Browse files
committed
fix: run prettier on all files suggested by new version of super-linter
Signed-off-by: jmeridth <[email protected]>
1 parent 4f48c57 commit 5c75c33

21 files changed

+304
-308
lines changed

.devcontainer/devcontainer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "Existing Dockerfile",
3-
"build": {
4-
"context": "..",
5-
"dockerfile": "../Dockerfile"
6-
},
2+
"name": "Existing Dockerfile",
3+
"build": {
4+
"context": "..",
5+
"dockerfile": "../Dockerfile"
6+
},
77

8-
"features": {
9-
"ghcr.io/devcontainers/features/common-utils:2": {}
10-
},
8+
"features": {
9+
"ghcr.io/devcontainers/features/common-utils:2": {}
10+
},
1111

12-
"remoteUser": "devcontainer"
12+
"remoteUser": "devcontainer"
1313
}

.github/pull_request_template.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Pull Request
2-
<!--
2+
3+
<!--
34
PR title needs to be prefixed with a conventional commit type
45
(build,chore,ci,docs,feat,fix,perf,refactor,revert,style,test)
56
@@ -9,6 +10,7 @@ examples: "feat: add new logger" or "fix: remove unused imports"
910
-->
1011

1112
## Proposed Changes
13+
1214
<!-- Describe what the changes are and link to a GitHub Issue if one exists -->
1315

1416
## Readiness Checklist

.github/release-drafter.yml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
---
2-
name-template: 'v$RESOLVED_VERSION'
3-
tag-template: 'v$RESOLVED_VERSION'
2+
name-template: "v$RESOLVED_VERSION"
3+
tag-template: "v$RESOLVED_VERSION"
44
template: |
55
# Changelog
66
$CHANGES
77
88
See details of [all code changes](https://github.com/github/issue-metrics/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION) since previous release
99
1010
categories:
11-
- title: '🚀 Features'
11+
- title: "🚀 Features"
1212
labels:
13-
- 'feature'
14-
- 'enhancement'
15-
- title: '🐛 Bug Fixes'
13+
- "feature"
14+
- "enhancement"
15+
- title: "🐛 Bug Fixes"
1616
labels:
17-
- 'fix'
18-
- 'bugfix'
19-
- 'bug'
20-
- title: '🧰 Maintenance'
17+
- "fix"
18+
- "bugfix"
19+
- "bug"
20+
- title: "🧰 Maintenance"
2121
labels:
22-
- 'infrastructure'
23-
- 'automation'
24-
- 'documentation'
25-
- 'dependencies'
26-
- 'maintenance'
27-
- 'revert'
28-
- title: '🏎 Performance'
29-
label: 'performance'
30-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
22+
- "infrastructure"
23+
- "automation"
24+
- "documentation"
25+
- "dependencies"
26+
- "maintenance"
27+
- "revert"
28+
- title: "🏎 Performance"
29+
label: "performance"
30+
change-template: "- $TITLE @$AUTHOR (#$NUMBER)"
3131
version-resolver:
3232
major:
3333
labels:
34-
- 'breaking'
34+
- "breaking"
3535
minor:
3636
labels:
37-
- 'enhancement'
38-
- 'fix'
37+
- "enhancement"
38+
- "fix"
3939
patch:
4040
labels:
41-
- 'documentation'
42-
- 'maintenance'
41+
- "documentation"
42+
- "maintenance"
4343
default: patch
4444
autolabeler:
45-
- label: 'automation'
45+
- label: "automation"
4646
title:
47-
- '/^(build|ci|perf|refactor|test).*/i'
48-
- label: 'enhancement'
47+
- "/^(build|ci|perf|refactor|test).*/i"
48+
- label: "enhancement"
4949
title:
50-
- '/^(style).*/i'
51-
- label: 'documentation'
50+
- "/^(style).*/i"
51+
- label: "documentation"
5252
title:
53-
- '/^(docs).*/i'
54-
- label: 'feature'
53+
- "/^(docs).*/i"
54+
- label: "feature"
5555
title:
56-
- '/^(feat).*/i'
57-
- label: 'fix'
56+
- "/^(feat).*/i"
57+
- label: "fix"
5858
title:
59-
- '/^(fix).*/i'
60-
- label: 'infrastructure'
59+
- "/^(fix).*/i"
60+
- label: "infrastructure"
6161
title:
62-
- '/^(infrastructure).*/i'
63-
- label: 'maintenance'
62+
- "/^(infrastructure).*/i"
63+
- label: "maintenance"
6464
title:
65-
- '/^(chore|maintenance).*/i'
66-
- label: 'revert'
65+
- "/^(chore|maintenance).*/i"
66+
- label: "revert"
6767
title:
68-
- '/^(revert).*/i'
68+
- "/^(revert).*/i"

.github/workflows/auto-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Auto Labeler
44
on:
55
# pull_request_target event is required for autolabeler to support all PRs including forks
66
pull_request_target:
7-
types: [ opened, reopened, edited, synchronize ]
7+
types: [opened, reopened, edited, synchronize]
88

99
permissions:
1010
contents: read

.github/workflows/contributor_report.yaml

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Monthly contributor report
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '3 2 1 * *'
5+
- cron: "3 2 1 * *"
66

77
permissions:
88
issues: write
@@ -13,33 +13,32 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
17-
- name: Get dates for last month
18-
shell: bash
19-
run: |
20-
# Calculate the first day of the previous month
21-
start_date=$(date -d "last month" +%Y-%m-01)
22-
23-
# Calculate the last day of the previous month
24-
end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d)
25-
26-
#Set an environment variable with the date range
27-
echo "START_DATE=$start_date" >> "$GITHUB_ENV"
28-
echo "END_DATE=$end_date" >> "$GITHUB_ENV"
29-
30-
- name: Run contributor action
31-
uses: github/contributors@135b0430e856ade27175cbd1d4e1e11b0dd8ef95
32-
env:
33-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
START_DATE: ${{ env.START_DATE }}
35-
END_DATE: ${{ env.END_DATE }}
36-
REPOSITORY: github/issue-metrics
37-
SPONSOR_INFO: "true"
38-
39-
- name: Create issue
40-
uses: peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94
41-
with:
42-
title: Monthly contributor report
43-
token: ${{ secrets.GITHUB_TOKEN }}
44-
content-filepath: ./contributors.md
45-
assignees: zkoppert
16+
- name: Get dates for last month
17+
shell: bash
18+
run: |
19+
# Calculate the first day of the previous month
20+
start_date=$(date -d "last month" +%Y-%m-01)
21+
22+
# Calculate the last day of the previous month
23+
end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d)
24+
25+
#Set an environment variable with the date range
26+
echo "START_DATE=$start_date" >> "$GITHUB_ENV"
27+
echo "END_DATE=$end_date" >> "$GITHUB_ENV"
28+
29+
- name: Run contributor action
30+
uses: github/contributors@135b0430e856ade27175cbd1d4e1e11b0dd8ef95
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
START_DATE: ${{ env.START_DATE }}
34+
END_DATE: ${{ env.END_DATE }}
35+
REPOSITORY: github/issue-metrics
36+
SPONSOR_INFO: "true"
37+
38+
- name: Create issue
39+
uses: peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94
40+
with:
41+
title: Monthly contributor report
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
content-filepath: ./contributors.md
44+
assignees: zkoppert

.github/workflows/docker-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Docker Image CI
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [main]
77
pull_request:
8-
branches: [ main ]
8+
branches: [main]
99

1010
permissions:
1111
contents: read
@@ -14,6 +14,6 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
18-
- name: Build the Docker image
19-
run: docker build . --file Dockerfile --platform linux/amd64 --tag issue-metrics:"$(date +%s)"
17+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
18+
- name: Build the Docker image
19+
run: docker build . --file Dockerfile --platform linux/amd64 --tag issue-metrics:"$(date +%s)"

.github/workflows/linter.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Lint Code Base
33

44
on:
55
pull_request:
6-
branches: [ main ]
6+
branches: [main]
77

88
permissions:
99
contents: read

.github/workflows/major-version-updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Major Version Updater
33
# Whenever a new release is made, push a major version tag
44
on:
55
release:
6-
types: [ published ]
6+
types: [published]
77

88
permissions:
99
contents: write

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: "Lint PR Title"
44

55
on:
66
pull_request_target:
7-
types: [ opened, reopened, edited, synchronize ]
7+
types: [opened, reopened, edited, synchronize]
88

99
permissions:
1010
contents: read

.github/workflows/python-package.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,33 @@ name: Python package
66

77
on:
88
push:
9-
branches: [ main ]
9+
branches: [main]
1010
pull_request:
11-
branches: [ main ]
11+
branches: [main]
1212

1313
permissions:
1414
contents: read
1515

1616
jobs:
1717
build:
18-
1918
runs-on: ubuntu-latest
2019
strategy:
2120
matrix:
2221
python-version: [3.11, 3.12]
2322

2423
steps:
25-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
26-
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
28-
with:
29-
python-version: ${{ matrix.python-version }}
30-
- name: Install dependencies
31-
run: |
32-
python -m pip install --upgrade pip
33-
pip install -r requirements.txt -r requirements-test.txt
34-
- name: Lint with flake8 and pylint
35-
run: |
36-
make lint
37-
- name: Test with pytest
38-
run: |
39-
make test
24+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install -r requirements.txt -r requirements-test.txt
33+
- name: Lint with flake8 and pylint
34+
run: |
35+
make lint
36+
- name: Test with pytest
37+
run: |
38+
make test

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ name: Release
44
on:
55
workflow_dispatch:
66
pull_request_target:
7-
types: [ closed ]
8-
branches: [ main ]
7+
types: [closed]
8+
branches: [main]
99

1010
permissions:
1111
contents: read

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ on:
99
# To guarantee Maintained check is occasionally updated. See
1010
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1111
schedule:
12-
- cron: '29 11 * * 6'
12+
- cron: "29 11 * * 6"
1313
push:
14-
branches: [ main ]
14+
branches: [main]
1515

1616
permissions: read-all
1717

.github/workflows/stale.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: 'Close stale issues'
1+
name: "Close stale issues"
22
on:
33
schedule:
4-
- cron: '30 1 * * *'
4+
- cron: "30 1 * * *"
55

66
permissions:
77
issues: write
@@ -13,8 +13,8 @@ jobs:
1313
steps:
1414
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
1515
with:
16-
stale-issue-message: 'This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days.'
17-
close-issue-message: 'This issue was closed because it has been stalled for 35 days with no activity.'
16+
stale-issue-message: "This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 14 days."
17+
close-issue-message: "This issue was closed because it has been stalled for 35 days with no activity."
1818
days-before-stale: 21
1919
days-before-close: 14
2020
days-before-pr-close: -1

.vscode/settings.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
2-
"python.testing.pytestArgs": [
3-
"."
4-
],
5-
"python.testing.unittestEnabled": false,
6-
"python.testing.pytestEnabled": true,
7-
"[python]": {
8-
"editor.defaultFormatter": "ms-python.black-formatter"
9-
},
10-
"python.formatting.provider": "none"
11-
}
2+
"python.testing.pytestArgs": ["."],
3+
"python.testing.unittestEnabled": false,
4+
"python.testing.pytestEnabled": true,
5+
"[python]": {
6+
"editor.defaultFormatter": "ms-python.black-formatter"
7+
},
8+
"python.formatting.provider": "none"
9+
}

0 commit comments

Comments
 (0)