Skip to content

Commit 9de5587

Browse files
committed
Use black to format Python files
Black is a popular Python code formatter. By using it, contributors don't need to think about the project's styles preferences and avoids the need for hand-formatting. Instead, let the tool handle it. This can help smooth the review process. Updated existing tools to follow the integration docs: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html For more details, see the project: https://github.com/psf/black
1 parent 1302d79 commit 9de5587

7 files changed

Lines changed: 1183 additions & 909 deletions

File tree

.github/workflows/black.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: black
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
black:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: psf/black@stable

codespell_lib/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from ._codespell import _script_main
22

3-
if __name__ == '__main__':
3+
if __name__ == "__main__":
44
_script_main()

0 commit comments

Comments
 (0)