Skip to content

Commit

Permalink
👷 Lint using pre-commit in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Dec 18, 2023
1 parent f343349 commit ecd118a
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,15 @@ jobs:
with:
node-version: '16'
cache: 'yarn'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black==23.9.1 isort==5.12.0 flake8==6.1.0 flake8-bugbear==23.9.16
yarn install
- name: Run flake8
run: flake8 fragdenstaat_de --statistics
- name: Run black
run: black --check fragdenstaat_de
- name: Run isort
run: isort --check fragdenstaat_de

- name: Run eslint
run: yarn lint
- name: cache pre-commit env
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files

test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ecd118a

Please sign in to comment.