Skip to content

Commit

Permalink
Run local(and all) pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
fizyk committed Jan 30, 2025
1 parent f7e4175 commit 7c7000a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
lint:
uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@v2.4.8
uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@pre-commit
with:
mypy: true
pre-commit: true
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ci:
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
minimum_pre_commit_version: 4.0.0
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down Expand Up @@ -42,6 +43,7 @@ repos:
- repo: local
hooks:
- id: pipenv
stages: [commit, manual]
language: system
name: Install dependencies for the local linters
entry: bash -c "pip install pipenv && pipenv install --dev"
Expand All @@ -50,6 +52,7 @@ repos:
- toml # Pipfile
pass_filenames: false
- id: mypy
stages: [commit, manual]
name: mypy
entry: pipenv run mypy .
language: system
Expand Down

0 comments on commit 7c7000a

Please sign in to comment.