Skip to content

Commit

Permalink
update: add cli for mypy run and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Apr 27, 2024
1 parent cb87a67 commit 76aa17c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ autoflake8-format:
.PHONY: format-codestyle
format-codestyle: black flake8

.PHONY: mypy
mypy:
poetry run mypy --config-file pyproject.toml elastica

.PHONY: test
test:
poetry run pytest
Expand All @@ -81,7 +85,7 @@ formatting: format-codestyle

.PHONY: update-dev-deps
update-dev-deps:
poetry add -D pytest@latest coverage@latest pytest-html@latest pytest-cov@latest black@latest
poetry add -D mypy@latest pytest@latest coverage@latest pytest-html@latest pytest-cov@latest black@latest

#* Cleaning
.PHONY: pycache-remove
Expand All @@ -92,6 +96,10 @@ pycache-remove:
dsstore-remove:
find . | grep -E ".DS_Store" | xargs rm -rf

.PHONY: mypycache-remove
mypycache-remove:
find . | grep -E ".mypy_cache" | xargs rm -rf

.PHONY: ipynbcheckpoints-remove
ipynbcheckpoints-remove:
find . | grep -E ".ipynb_checkpoints" | xargs rm -rf
Expand All @@ -105,7 +113,7 @@ build-remove:
rm -rf build/

.PHONY: cleanup
cleanup: pycache-remove dsstore-remove ipynbcheckpoints-remove pytestcache-remove
cleanup: pycache-remove dsstore-remove ipynbcheckpoints-remove pytestcache-remove mypycache-remove

all: format-codestyle cleanup test

Expand Down

0 comments on commit 76aa17c

Please sign in to comment.