代码拉取完成,页面将自动刷新
@echo off
setlocal enabledelayedexpansion
IF "%1%" == "docs" (
mkdir docs/
:: pdoc3
robocopy .\docsrc\assets\ .\docs\assets\
pdoc3 --html --force --output-dir docs pandas_profiling
robocopy .\docs\pandas_profiling .\docs /E /MOVE
:: sphinx
cd docsrc/ && make github
ECHO "Docs updated!"
GOTO end
)
IF "%1" == "test" (
pytest --black tests/unit/
pytest --black tests/issues/
pytest --nbval tests/notebooks/
flake8 . --select=E9,F63,F7,F82 --show-source --statistics
ECHO "Tests completed!"
GOTO end
)
IF "%1" == "examples" (
FOR /R /D %%d in ("examples\*") do (
SET B=%%d
FOR /R %%f in ("!B:%CD%\=!\*.py") DO (
SET C=%%f
ECHO "Running !C:%%d\=! (in %%d)"
CD %%d && python "!C:%%d\=!"
CD %CD%
)
)
ECHO "Example runs completed!"
GOTO end
)
IF "%1" == "pypi_package" (
make install
check-manifest
python setup.py sdist bdist_wheel
twine check dist/*
twine upload --skip-existing dist/*
ECHO "PyPi package completed"
GOTO end
)
IF "%1" == "lint" (
isort --apply
black .
GOTO end
)
IF "%1" == "install" (
pip install -e .[notebook,app]
GOTO end
)
if "%1" == "typing" (
pytest --mypy -m mypy .
GOTO end
)
IF "%1%" == "clean" (
ECHO "Not implemented yet"
GOTO end
)
IF "%1%" == "all" (
make lint
make install
make examples
make docs
make test
make typing
GOTO end
)
ECHO "No command matched"
:end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。