Skip to content

Commit

Permalink
Use black to format Python files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jdufresne committed Nov 6, 2022
1 parent 3576f32 commit 7c13c7f
Show file tree
Hide file tree
Showing 7 changed files with 1,196 additions and 911 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: black

on:
- push
- pull_request

jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
2 changes: 1 addition & 1 deletion codespell_lib/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ._codespell import _script_main

if __name__ == '__main__':
if __name__ == "__main__":
_script_main()
Loading

0 comments on commit 7c13c7f

Please sign in to comment.