Skip to content

Commit

Permalink
Fix pre-commit check / format.yml workflow (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerman342 authored and strasdat committed Jun 2, 2024
1 parent 7abdae1 commit f11301d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
pre-commit-check:
runs-on: ubuntu-latest
steps:
- name: Checkout workspace
uses: actions/checkout@v3
- name: Install pre-commit and install
run: |
pip install pre-commit
pre-commit install
- name: Run pre-commit checks
run: pre-commit run --all-files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ repos:
- id: check-json
exclude: docs/.*$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.5.1"
rev: "v1.8.0"
hooks:
- id: mypy
args: ["--check-untyped-defs", "--ignore-missing-imports", "--explicit-package-bases"]
additional_dependencies: ["types-protobuf", "types-requests"]
additional_dependencies: ["types-protobuf==4.24.0.1", "types-requests"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.13
hooks:
Expand Down

0 comments on commit f11301d

Please sign in to comment.