Skip to content

Commit

Permalink
Config/pre push type check (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: salihuDickson <[email protected]>
  • Loading branch information
SalihuDickson and salihuDickson authored Sep 12, 2024
1 parent 90068fa commit c6aae7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ pre-push:
files: git diff --name-only --diff-filter=d $(git merge-base origin/main HEAD)..HEAD
run: poetry run ruff check {files}
glob: '*.py'
mypy:
files: git diff --name-only --diff-filter=d $(git merge-base origin/main HEAD)..HEAD
run: poetry run mypy {files}
glob: '*.py'
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ mypy = "^1.10.1"

[tool.mypy]
strict_optional = false
exclude = [
"crategen/validators.py"
]

[[tool.mypy.overrides]]
module = ['crategen.validators']
ignore_errors = true

[tool.poetry.group.dev.dependencies]
ruff = "^0.6.3"
Expand Down

0 comments on commit c6aae7c

Please sign in to comment.