-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from neuralmagic/parfeniukink/configurations-im…
…provements Dev tools configurations
- Loading branch information
Showing
3 changed files
with
42 additions
and
16 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,34 +1,54 @@ | ||
.PHONY: install | ||
install: | ||
pip install -r requirements.txt | ||
python -m pip install -r requirements.txt | ||
|
||
install-dev: | ||
pip install -e .[dev] | ||
.PHONY: install.dev | ||
install.dev: | ||
python -m pip install -e .[dev] | ||
|
||
.PHONY: build | ||
build: | ||
python setup.py sdist bdist_wheel | ||
|
||
|
||
.PHONY: quality | ||
quality: | ||
ruff check src tests | ||
isort --check-only src tests | ||
flake8 src tests --max-line-length 88 | ||
mypy src | ||
python -m ruff check src tests | ||
python -m isort --check src tests | ||
python -m flake8 src tests --max-line-length 88 | ||
python -m mypy src | ||
|
||
|
||
.PHONY: style | ||
style: | ||
ruff format src tests | ||
isort src tests | ||
flake8 src tests --max-line-length 88 | ||
python -m ruff format src tests | ||
python -m isort src tests | ||
python -m flake8 src tests --max-line-length 88 | ||
|
||
|
||
.PHONY: test | ||
test: | ||
python -m pytest -s -vvv --cache-clear tests/ | ||
python -m pytest -s -vvv --cache-clear tests | ||
|
||
build: | ||
python setup.py sdist bdist_wheel | ||
.PHONY: test.unit | ||
test.unit: | ||
python -m pytest tests/unit | ||
|
||
.PHONY: test.integration | ||
test.integration: | ||
python -m pytest tests/integration | ||
|
||
.PHONY: test.e2e | ||
test.e2e: | ||
python -m pytest tests/e2e | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf __pycache__ | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf *.egg-info | ||
find . -type f -name "*.pyc" -delete | ||
find . -type d -name "__pycache__" -exec rm -r {} + | ||
rm -rf .mypy_cache | ||
rm -rf .pytest_cache | ||
|
||
.PHONY: install install-dev quality style test test-unit test-integration test-e2e test-smoke test-sanity test-regression build clean |
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