加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
make.bat 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Simon Brugman 提交于 2020-05-07 21:54 . Release v2.7.0 (#463)
@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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化