diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 24df68da..391fe58a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ concurrency: jobs: linting: - name: Pylint & Black Checks + name: Pylint Checks runs-on: ubuntu-20.04 timeout-minutes: 5 steps: @@ -29,9 +29,7 @@ jobs: - name: Install Codemodder Package run: pip install . - name: Install Dependencies - run: pip install -r requirements/lint.txt - - name: Black Format Check - run: black --check . + run: pip install -r requirements/test.txt - name: Run pylint run: make lint @@ -55,3 +53,10 @@ jobs: # threshold for pipeline to fail if we go below average, module, or block complexity # https://github.com/rubik/xenon run: make xenon + + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.0 diff --git a/requirements/lint.txt b/requirements/lint.txt deleted file mode 100644 index 866e41d5..00000000 --- a/requirements/lint.txt +++ /dev/null @@ -1,3 +0,0 @@ -black==23.11.* -mypy==1.7.* --r test.txt