Skip to content

Commit e3c9b59

Browse files
authored
Format all files with latest version of prettier to fix some issues (#1404)
* Format all files with latest version of prettier to fix some issues created using an outdated version This impacts the following file types: - Markdown - YAML - Javascript * The latest version of Ruff has some improved string formatting, run auto-format to fix that
1 parent 04c7c29 commit e3c9b59

37 files changed

+1526
-1462
lines changed

.github/CODE_OF_CONDUCT.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities

.github/CONTRIBUTING.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -483,17 +483,17 @@ how to do it.
483483
4. The title (also called the subject) of your PR should be descriptive of your
484484
changes and succinctly indicate what is being fixed
485485

486-
- **Do not add the issue number in the PR title or commit message**
486+
- **Do not add the issue number in the PR title or commit message**
487487

488-
- Examples: `Add test cases for Unicode support`; `Correct typo in overview documentation`
488+
- Examples: `Add test cases for Unicode support`; `Correct typo in overview documentation`
489489

490490
5. In the body of your PR include a more detailed summary of the changes you
491491
made and why
492492

493-
- If the PR is meant to fix an existing bug/issue, then, at the end of
494-
your PR's description, append the keyword `closes` and #xxxx (where xxxx
495-
is the issue number). Example: `closes #1337`. This tells GitHub to
496-
close the existing issue if the PR is merged.
493+
- If the PR is meant to fix an existing bug/issue, then, at the end of
494+
your PR's description, append the keyword `closes` and #xxxx (where xxxx
495+
is the issue number). Example: `closes #1337`. This tells GitHub to
496+
close the existing issue if the PR is merged.
497497

498498
6. Indicate what local testing you have done (e.g. what OS and version(s) of Python did you run the
499499
unit test suite with)
@@ -634,7 +634,7 @@ mostly automated. The manual steps are all git operations. Here's the checklist:
634634
1. Make sure latest year in `LICENSE` matches current year
635635
1. Make sure `CHANGELOG.md` describes the version and has the correct release date
636636
1. Add a git tag representing the version number using `invoke tag x.y.z`
637-
- Where x, y, and z are all small non-negative integers
637+
- Where x, y, and z are all small non-negative integers
638638
1. (Optional) Run `invoke pypi-test` to clean, build, and upload a new release to [Test PyPi](https://test.pypi.org)
639639
1. Run `invoke pypi` to clean, build, and upload a new release to [PyPi](https://pypi.org/)
640640

.github/dependabot.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
5-
schedule:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
66
interval: "weekly"
77

8-
- package-ecosystem: "pip"
9-
directory: "/"
10-
schedule:
8+
- package-ecosystem: "pip"
9+
directory: "/"
10+
schedule:
1111
interval: "weekly"

.github/workflows/codeql-analysis.yml

+38-38
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ on:
77
# The branches below must be a subset of the branches above
88
branches: [master]
99
schedule:
10-
- cron: '0 6 * * 4'
10+
- cron: "0 6 * * 4"
1111

1212
permissions:
1313
contents: read
1414

1515
jobs:
1616
analyze:
1717
permissions:
18-
actions: read # for github/codeql-action/init to get workflow details
19-
contents: read # for actions/checkout to fetch code
20-
security-events: write # for github/codeql-action/autobuild to send a status report
18+
actions: read # for github/codeql-action/init to get workflow details
19+
contents: read # for actions/checkout to fetch code
20+
security-events: write # for github/codeql-action/autobuild to send a status report
2121
name: Analyze
2222
runs-on: ubuntu-latest
2323

@@ -26,48 +26,48 @@ jobs:
2626
matrix:
2727
# Override automatic language detection by changing the below list
2828
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
29-
language: ['python']
29+
language: ["python"]
3030
# Learn more...
3131
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
3232

3333
steps:
34-
- name: Checkout repository
35-
uses: actions/checkout@v4
36-
with:
37-
# We must fetch at least the immediate parents so that if this is
38-
# a pull request then we can checkout the head.
39-
fetch-depth: 2
34+
- name: Checkout repository
35+
uses: actions/checkout@v4
36+
with:
37+
# We must fetch at least the immediate parents so that if this is
38+
# a pull request then we can checkout the head.
39+
fetch-depth: 2
4040

41-
# If this run was triggered by a pull request event, then checkout
42-
# the head of the pull request instead of the merge commit.
43-
- run: git checkout HEAD^2
44-
if: ${{ github.event_name == 'pull_request' }}
41+
# If this run was triggered by a pull request event, then checkout
42+
# the head of the pull request instead of the merge commit.
43+
- run: git checkout HEAD^2
44+
if: ${{ github.event_name == 'pull_request' }}
4545

46-
# Initializes the CodeQL tools for scanning.
47-
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v3
49-
with:
50-
languages: ${{ matrix.language }}
51-
# If you wish to specify custom queries, you can do so here or in a config file.
52-
# By default, queries listed here will override any specified in a config file.
53-
# Prefix the list here with "+" to use these queries and those in the config file.
54-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@v3
49+
with:
50+
languages: ${{ matrix.language }}
51+
# If you wish to specify custom queries, you can do so here or in a config file.
52+
# By default, queries listed here will override any specified in a config file.
53+
# Prefix the list here with "+" to use these queries and those in the config file.
54+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5555

56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v3
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v3
6060

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 https://git.io/JvXDl
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 https://git.io/JvXDl
6363

64-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
65-
# and modify them (or add more) to build your code if your project
66-
# uses a compiled language
64+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
65+
# and modify them (or add more) to build your code if your project
66+
# uses a compiled language
6767

68-
#- run: |
69-
# make bootstrap
70-
# make release
68+
#- run: |
69+
# make bootstrap
70+
# make release
7171

72-
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v3
72+
- name: Perform CodeQL Analysis
73+
uses: github/codeql-action/analyze@v3

.github/workflows/format.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
33
name: Format
44

5-
on: [ push, pull_request ]
5+
on: [push, pull_request]
66

77
permissions:
88
contents: read
@@ -11,7 +11,7 @@ jobs:
1111
format:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4 # https://github.com/actions/checkout
14+
- uses: actions/checkout@v4 # https://github.com/actions/checkout
1515
with:
1616
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
1717
# Set fetch-depth: 0 to fetch all history for all branches and tags.

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
33
name: Lint
44

5-
on: [ push, pull_request ]
5+
on: [push, pull_request]
66

77
permissions:
88
contents: read
@@ -11,7 +11,7 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4 # https://github.com/actions/checkout
14+
- uses: actions/checkout@v4 # https://github.com/actions/checkout
1515
with:
1616
# Only a single commit is fetched by default, for the ref/SHA that triggered the workflow.
1717
# Set fetch-depth: 0 to fetch all history for all branches and tags.

.github/workflows/mypy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
33
name: MyPy
44

5-
on: [ push, pull_request ]
5+
on: [push, pull_request]
66

77
permissions:
88
contents: read

.prettierrc

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"overrides": [
3-
{
4-
"files": "*.md",
5-
"options": {
6-
"tabWidth": 4
7-
}
2+
"overrides": [
3+
{
4+
"files": "*.md",
5+
"options": {
6+
"tabWidth": 4
87
}
9-
]
10-
}
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)