-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathmake.bat
60 lines (51 loc) · 1.05 KB
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@echo off
setlocal enabledelayedexpansion
IF "%1%" == "docs" (
pdoc3 --html --force --output-dir docs pandas_profiling
robocopy .\docs\pandas_profiling .\docs /E /MOVE
ECHO "Docs updated!"
GOTO end
)
IF "%1" == "test" (
pytest --nbval --cov=./ --sanitize-with tests/sanitize-notebook.cfg tests/
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
python setup.py sdist
twine upload dist/*
ECHO "PyPi package completed"
GOTO end
)
IF "%1" == "lint" (
black .
GOTO end
)
IF "%1" == "install" (
pip install -e .
GOTO end
)
IF "%1%" == "all" (
make lint
make install
make examples
make docs
make test
GOTO end
)
ECHO "No command matched"
:end