From 98037981fcd8ae9a532584a4b98485987fa1cc7e Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Tue, 27 Feb 2024 21:02:16 +0100 Subject: [PATCH] Edit .github/workflows/bitfinex-api-py-ci.yml to run pre-commit hooks. --- .github/workflows/bitfinex-api-py-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bitfinex-api-py-ci.yml b/.github/workflows/bitfinex-api-py-ci.yml index 8dc0020..b82e55f 100644 --- a/.github/workflows/bitfinex-api-py-ci.yml +++ b/.github/workflows/bitfinex-api-py-ci.yml @@ -8,9 +8,6 @@ on: branches: - master -permissions: - contents: read - jobs: build: runs-on: ubuntu-latest @@ -23,7 +20,7 @@ jobs: python-version: '3.8' - name: Install bitfinex-api-py's dependencies run: python -m pip install -r dev-requirements.txt - - name: Lint the project with pylint (and fail if score is lower than 10.00/10.00) - run: python -m pylint bfxapi - - name: Run mypy to check the correctness of type hinting (and fail if any error or warning is found) + - name: Run pre-commit hooks (see .pre-commit-config.yaml) + uses: pre-commit/action@v3.0.1 + - name: Run mypy to ensure correct type hinting run: python -m mypy bfxapi