From 254cd697488114905a804cd13a842eb9c4e56744 Mon Sep 17 00:00:00 2001 From: Merwane Hamadi Date: Mon, 17 Apr 2023 12:50:21 -0700 Subject: [PATCH] Update CI workflow to use flake8, black, and isort formatting checks --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39f3aea9..0a9a9287 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,15 @@ jobs: - name: Lint with flake8 continue-on-error: false - run: flake8 autogpt/ tests/ --select E303,W293,W291,W292,E305,E231,E302 + run: flake8 + + - name: Check black formatting + continue-on-error: false + run: black . --check + + - name: Check isort formatting + continue-on-error: false + run: isort . --check - name: Run unittest tests with coverage run: |