From aa298f99dd6113d5bff10fab1495addd9d1a4c9f Mon Sep 17 00:00:00 2001 From: Sri Vardhamanan <79786680+lawliet19189@users.noreply.github.com> Date: Mon, 18 Sep 2023 00:28:21 +0530 Subject: [PATCH 1/2] Create black.yml --- .github/workflows/black.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000000..1670c45fd6 --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,12 @@ +name: Lint + +on: [pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: psf/black@stable + with: + options: "--line-length 120" From 92fedcca9890f75e32e41660d44be79f34e8a28a Mon Sep 17 00:00:00 2001 From: Sri Vardhamanan Date: Mon, 18 Sep 2023 00:32:37 +0530 Subject: [PATCH 2/2] adding isort --- .github/workflows/isort.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/isort.yml diff --git a/.github/workflows/isort.yml b/.github/workflows/isort.yml new file mode 100644 index 0000000000..d7e820fbb0 --- /dev/null +++ b/.github/workflows/isort.yml @@ -0,0 +1,11 @@ +name: Run isort +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: isort/isort-action@v1 + with: + requirements-files: "requirements.txt" \ No newline at end of file