From b3c3c34c6f77847be9ba53b07e4fb4deca8852d1 Mon Sep 17 00:00:00 2001 From: Richard Bullington-McGuire Date: Sun, 4 Feb 2024 17:25:10 -0500 Subject: [PATCH] Optimize --- .github/workflows/lint.yml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b0f9b90..000d56b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,23 +6,8 @@ on: [push, pull_request] jobs: # Thanks https://black.readthedocs.io/en/stable/integrations/github_actions.html - black: + lint: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: psf/black@24.1.1 - - isort: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: isort/isort-action@v1 - with: - requirements-files: "requirements.txt requirements-test.txt" - - flake8: - runs-on: ubuntu-latest - name: Lint steps: - name: Check out source repository uses: actions/checkout@v3 @@ -30,5 +15,11 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.10" + - name: black Lint + uses: psf/black@24.1.1 + - name: isort Lint + uses: isort/isort-action@v1 + with: + requirements-files: "requirements.txt requirements-test.txt" - name: flake8 Lint uses: py-actions/flake8@v2