diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c876b3..74d7381 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,11 +24,5 @@ jobs: - name: Install dependencies run: poetry install --with dev - - name: flake8 lint - run: poetry run flake8 - - - name: mypy type check - run: poetry run mypy . - - - name: Test with pytest - run: poetry run pytest + - name: Check types, lint, and test + run: make check diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d5a6563 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +check: lint typecheck test + +test: + poetry run pytest + +lint: + poetry run flake8 + +typecheck: + poetry run mypy . \ No newline at end of file