mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix compatibility with pydantic 1.5 (temporary)
This commit is contained in:
parent
01c6303d67
commit
e9fef19129
5 changed files with 117 additions and 77 deletions
6
Makefile
6
Makefile
|
|
@ -28,6 +28,7 @@ help:
|
|||
@echo "Tests:"
|
||||
@echo " test: Run tests"
|
||||
@echo " test-coverage: Run tests with HTML reporting (results + coverage)"
|
||||
@echo " test-coverage-report: Open coverage report in default system web browser"
|
||||
@echo ""
|
||||
@echo "Documentation:"
|
||||
@echo " docs: Build docs"
|
||||
|
|
@ -109,6 +110,10 @@ test-coverage:
|
|||
$(py) pytest --cov=aiogram --cov-config .coveragerc --html=$(reports_dir)/tests/index.html tests/
|
||||
$(py) coverage html -d $(reports_dir)/coverage
|
||||
|
||||
.PHONY: test-coverage-report
|
||||
test-coverage-report:
|
||||
python -c "import webbrowser; webbrowser.open('file://$(shell pwd)/reports/coverage/index.html')"
|
||||
|
||||
# =================================================================================================
|
||||
# Docs
|
||||
# =================================================================================================
|
||||
|
|
@ -125,7 +130,6 @@ docs-serve:
|
|||
docs-copy-reports:
|
||||
mv $(reports_dir)/* site/reports
|
||||
|
||||
|
||||
# =================================================================================================
|
||||
# Project
|
||||
# =================================================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue