From a8ea9a593133746b6b41e75d12f80772a45eb52b Mon Sep 17 00:00:00 2001 From: clavedeluna Date: Fri, 26 May 2023 11:13:23 -0300 Subject: [PATCH] add black to CI --- .github/workflows/lint.yml | 4 +++- requirements/black.txt | 1 - requirements/lint.txt | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 requirements/black.txt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d958f161..d804122b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ concurrency: jobs: linting: - name: Pylint Checks + name: Pylint & Black Checks runs-on: ubuntu-20.04 timeout-minutes: 3 steps: @@ -28,6 +28,8 @@ jobs: uses: actions/checkout@v3 - name: Install Dependencies run: pip install -r requirements/lint.txt + - name: Black Format Check + run: black --check . - name: Run pylint run: pylint codemodder/ tests/ -v diff --git a/requirements/black.txt b/requirements/black.txt deleted file mode 100644 index 36196724..00000000 --- a/requirements/black.txt +++ /dev/null @@ -1 +0,0 @@ -black==23.3.0 diff --git a/requirements/lint.txt b/requirements/lint.txt index c901d672..dfcc58f0 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -1,3 +1,4 @@ +black==23.3.0 pylint==2.17.* -r codemodder.txt -r test.txt