From ecdf06497577160b88c1e62fec11e6b0bd2b61c3 Mon Sep 17 00:00:00 2001 From: Brandon Zacharie Date: Sat, 11 May 2024 00:01:31 -0500 Subject: [PATCH] Use a different lint config --- .github/workflows/python-app.yml | 25 +++++++++++++++---------- pyproject.toml | 1 + 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index f8c611b..adda8bf 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -14,23 +14,28 @@ permissions: jobs: lint: + name: Black runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: psf/black@stable - with: - options: "--check --verbose" - src: "./" - use_pyproject: true - + - uses: actions/checkout@v4 + - uses: actions/setup-python@v3 + with: + python-version: "3.11" + - uses: psf/black@stable + with: + options: "--check --verbose" + src: "." + use_pyproject: true + test: + needs: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -44,7 +49,7 @@ jobs: with: parallel: true flag-name: Unit Test - + report: needs: test runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index ea3f949..b1623c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,7 @@ ignore_missing_imports = true [tool.black] target-version = ["py311"] +required-version = 24 [tool.isort] profile = "black"