Skip to content

Commit

Permalink
Add black github action
Browse files Browse the repository at this point in the history
  • Loading branch information
JBorrow committed Jan 30, 2024
1 parent 6e033a6 commit 4be0e88
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Formatting

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src"
- uses: isort/isort-action@master
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ source = [
[tool.coverage.report]
exclude_lines = ["pragma: no cover"]

[tool.isort]
profile = "black"

0 comments on commit 4be0e88

Please sign in to comment.