-
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.
feat: properly setup of type checking (#112)
- Loading branch information
Showing
40 changed files
with
850 additions
and
595 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 |
---|---|---|
@@ -1,21 +1,59 @@ | ||
.PHONY: default black flake8 test test-v test-vv | ||
.PHONY: default | ||
default: help | ||
|
||
default: black flake8 | ||
.PHONY: help | ||
help: | ||
@echo "make help - show this help" | ||
@echo "make lint - run all linting" | ||
@echo "make format - run all formatting" | ||
@echo "make lint-isort - run isort linting" | ||
@echo "make format-isort - run isort formatting" | ||
@echo "make lint-black - run black linting" | ||
@echo "make format-black - run black formatting" | ||
@echo "make lint-flake8 - run flake8 linting" | ||
@echo "make lint-pyright - run pyright linting" | ||
@echo "make test - run all tests" | ||
@echo "make test-v - run all tests with verbose output" | ||
@echo "make test-vv - run all tests with very verbose output" | ||
|
||
black: | ||
black -l 100 --exclude "versioneer.py|_version.py" . | ||
.PHONY: lint | ||
lint: lint-isort lint-black lint-flake8 lint-pyright | ||
|
||
.PHONY: format | ||
format: format-isort format-black | ||
|
||
.PHONY: lint-isort | ||
lint-isort: | ||
isort --check-only --diff --force-sort-within-sections --profile=black . | ||
|
||
.PHONY: format-isort | ||
format-isort: | ||
isort --force-sort-within-sections --profile=black . | ||
|
||
black-check: | ||
.PHONY: lint-black | ||
lint-black: | ||
black -l 100 --exclude "versioneer.py|_version.py" --check . | ||
|
||
flake8: | ||
.PHONY: format-black | ||
format-black: | ||
black -l 100 --exclude "versioneer.py|_version.py" . | ||
|
||
.PHONY: lint-flake8 | ||
lint-flake8: | ||
flake8 . | ||
|
||
.PHONY: lint-pyright | ||
lint-pyright: | ||
pyright | ||
|
||
.PHONY: test | ||
test: | ||
pytest | ||
|
||
.PHONY: test-v | ||
test-v: | ||
pytest -v | ||
|
||
.PHONY: test-vv | ||
test-vv: | ||
pytest -vv |
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
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
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
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
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
Oops, something went wrong.