Skip to content

Commit

Permalink
Add pre-commit hook for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
gbip committed Jan 15, 2025
1 parent 382a2b2 commit bbd0cb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ repos:
- id: isort
args: ["--profile", "black"]
name: isort (python)

- repo: local
hooks:
- id: mypy
name: Mypy
entry: ./run_mypy.sh
language: script
pass_filenames: false
3 changes: 3 additions & 0 deletions run_mypy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

mypy django_pyoidc

0 comments on commit bbd0cb2

Please sign in to comment.