Skip to content

Commit

Permalink
Add mypy check
Browse files Browse the repository at this point in the history
  • Loading branch information
lalmei committed Nov 22, 2024
1 parent 069736a commit 5ad6269
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,22 @@ test: $(test.python) $(src.python) ## Run tests


.PHONY: format
format: ## Run format
format: ## Run ruff format
uv run ruff format --config=config/ruff.toml $(src.python) $(test.python)

.PHONY: check-Format
check-format: ## Check format
.PHONY: check-format
check-format: ## Check ruff format
uv run ruff format --check --config=config/ruff.toml $(src.python) $(test.python)


.PHONY: lint-fix
lint-fix: ## Fix Lint issues
lint-fix: ## Fix ruff Lint issues
uv run ruff check --fix --config=config/ruff.toml $(src.python) $(test.python)

.PHONY: lint
lint: ## Run Code Linter
lint: ## Run ruff Code Linter
uv run ruff check --config=config/ruff.toml $(src.python) $(test.python)

.PHONY: check-types
check-types: ## Run mypy to check type definitions.
uv run mypy --config=config/mypy.ini $(src.python) $(test.python)
9 changes: 9 additions & 0 deletions config/mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[mypy]
files= *.py
ignore_missing_imports = True
disallow_untyped_defs = True
strict = True
pretty = True
color_output = True
implicit_reexport = False
linecount-report =True

0 comments on commit 5ad6269

Please sign in to comment.