From 4be0e8813736b0be5f77f3816b18f78daa618879 Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Tue, 30 Jan 2024 15:05:38 -0500 Subject: [PATCH] Add black github action --- .github/workflows/black.yml | 14 ++++++++++++++ pyproject.toml | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..1165c00 --- /dev/null +++ b/.github/workflows/black.yml @@ -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 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 5fff2b4..89a0224 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,3 +85,5 @@ source = [ [tool.coverage.report] exclude_lines = ["pragma: no cover"] +[tool.isort] +profile = "black"