Skip to content

Commit

Permalink
Move lint.sh to MAkefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gkodrzycki committed Jul 24, 2024
1 parent 9d7e64f commit adf7c60
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
lint:
bash lint.sh .
.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 .
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ alembic upgrade head

#### Linting
We are using following tools:
* black - to run use `black <path to file>`
* isort - to run use `isort <path to file>`
* pylint - to run use `pylint <path to file>`
* 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`

Expand Down
6 changes: 0 additions & 6 deletions lint.sh

This file was deleted.

0 comments on commit adf7c60

Please sign in to comment.