-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kiran Jojare
committed
Jul 19, 2024
1 parent
7b27dcf
commit 956b61d
Showing
2 changed files
with
28 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.PHONY: lint check | ||
|
||
# Install dependencies | ||
install: | ||
pip install -r requirements.txt | ||
|
||
# Lint the code using flake8 | ||
lint: | ||
flake8 src test --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 src test --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
|
||
# Check if all Python files are error-free using mypy | ||
check: | ||
mypy src test | ||
|
||
# Run all checks | ||
all: install lint check |