Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ repos:
rev: v1.19.1
hooks:
- id: mypy
args: [--pretty, --show-error-codes, --check-untyped-defs]
name: poetry-mypy
entry: poetry run mypy
language: system
types: [python]
pass_filenames: false
args: [--pretty, --show-error-codes, --check-untyped-defs,'.']

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.0
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ activate_venv:
install:
poetry install

ruff:
poetry run pre-commit run ruff

fmt format:
poetry run pre-commit run ruff-format

Expand All @@ -29,10 +26,10 @@ test:
poetry run pytest -q

typecheck:
poetry run mypy .
poetry run pre-commit run -v mypy

precommit: lint format typecheck test
poetry run pre-commit run
@echo "precommit checks passed"

precommit-all: lint format typecheck test
poetry run pre-commit run --all-files
Expand Down
Loading