diff --git a/Makefile b/Makefile index 3740957..d5f30a9 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,15 @@ -lint: - bash lint.sh . \ No newline at end of file +.PHONY: lint black isort pylint + +lint: black isort pylint + +black: + @echo "LINTING WITH BLACK" + @poetry run black . + +isort: + @echo "LINTING WITH ISORT" + @poetry run isort . + +pylint: + @echo "LINTING WITH PYLINT" + @poetry run pylint --recursive y . diff --git a/README.md b/README.md index 8e866ef..f961be9 100644 --- a/README.md +++ b/README.md @@ -84,9 +84,9 @@ alembic upgrade head #### Linting We are using following tools: -* black - to run use `black ` -* isort - to run use `isort ` -* pylint - to run use `pylint ` +* black - to run use `make black` +* isort - to run use `make isort` +* pylint - to run use `make pylint` If you want to lint every file using all at once you can also run `make lint` diff --git a/lint.sh b/lint.sh deleted file mode 100644 index 58b93a6..0000000 --- a/lint.sh +++ /dev/null @@ -1,6 +0,0 @@ -echo "LINTING WITH BLACK" -poetry run black $1 -echo "LINTING WITH ISORT" -poetry run isort $1 -echo "LINTING WITH pylint" -poetry run pylint --recursive y $1 \ No newline at end of file