Skip to content

Commit

Permalink
Run local/manual 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 c283ef8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ on:

jobs:
lint:
uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@v2.4.8
uses: fizyk/actions-reuse/.github/workflows/linters-python.yml@v2.5.0
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: [pre-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: [pre-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: [pre-commit, manual]
name: mypy
entry: pipenv run mypy .
language: system
Expand Down
1 change: 1 addition & 0 deletions newsfragments/1055.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run mypy linter through pre-commit on github ci.

0 comments on commit c283ef8

Please sign in to comment.