Edit .github/workflows/bitfinex-api-py-ci.yml to run pre-commit hooks.

This commit is contained in:
Davide Casale
2024-02-27 21:02:16 +01:00
parent e4c7acd2c7
commit 98037981fc

View File

@@ -8,9 +8,6 @@ on:
branches: branches:
- master - master
permissions:
contents: read
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -23,7 +20,7 @@ jobs:
python-version: '3.8' python-version: '3.8'
- name: Install bitfinex-api-py's dependencies - name: Install bitfinex-api-py's dependencies
run: python -m pip install -r dev-requirements.txt 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) - name: Run pre-commit hooks (see .pre-commit-config.yaml)
run: python -m pylint bfxapi uses: pre-commit/action@v3.0.1
- name: Run mypy to check the correctness of type hinting (and fail if any error or warning is found) - name: Run mypy to ensure correct type hinting
run: python -m mypy bfxapi run: python -m mypy bfxapi