From 84637ec57fe3d07108b00ccb2c9fba918930f5d2 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 19 Jul 2024 20:53:36 -0400 Subject: [PATCH] ci: formatting checks --- .forgejo/workflows/ci.yml | 15 +++++++++++++++ .python-version | 1 + 2 files changed, 16 insertions(+) create mode 100644 .forgejo/workflows/ci.yml create mode 100644 .python-version diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..149946d --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,15 @@ +on: + push: + +jobs: + sast: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - name: Install pipx + run: pip install pipx + - name: Check formatting + run: pipx run black . --check + - name: Check import ordering + run: pipx run isort . --check diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..e4fba21 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12