From 5b1df90ab7f5d894bf33f2e9cc77e08825b5ed71 Mon Sep 17 00:00:00 2001 From: atarutin Date: Sun, 26 May 2024 23:42:11 +0300 Subject: [PATCH] Revert "add makefile and update github action to use it" This reverts commit f52a1db31fd2b4f322c42c156a4e934e3d30784f. --- .../{checklist.yml => python-app.yml} | 11 +++++---- makefile | 23 ------------------- 2 files changed, 7 insertions(+), 27 deletions(-) rename .github/workflows/{checklist.yml => python-app.yml} (79%) delete mode 100644 makefile diff --git a/.github/workflows/checklist.yml b/.github/workflows/python-app.yml similarity index 79% rename from .github/workflows/checklist.yml rename to .github/workflows/python-app.yml index e4af30e..56a7270 100644 --- a/.github/workflows/checklist.yml +++ b/.github/workflows/python-app.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a single version of Python # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: Checklist +name: Python application on: push: @@ -26,8 +26,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pylint pytest mypy + pip install pylint pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Run checklist + - name: Run linter run: | - make checklist + pylint **/*.py --rcfile=.pylintrc + - name: Test with pytest + run: | + pytest diff --git a/makefile b/makefile deleted file mode 100644 index d169e49..0000000 --- a/makefile +++ /dev/null @@ -1,23 +0,0 @@ -.PHONY: typehint -typehint: - mypy . - -.PHONY: test -test: - pytest - -.PHONY: lint -lint: - pylint **/*.py --rcfile=.pylintrc - -.PHONY: checklist -checklist: lint typehint test - -.PHONY: format -black: - black -l 80 *.py - -.PHONY: clean -clean: - find . -type f -name '*.pyc' | xargs rm -fr - find . -type d -name '__pycache__' | xargs rm -fr \ No newline at end of file