forked from ydataai/ydata-profiling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
64 lines (55 loc) · 1.12 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
61
62
63
64
@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 tests/unit/
pytest tests/issues/
pytest --nbval tests/notebooks/
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" == "lint" (
pre-commit run --all-files
GOTO end
)
IF "%1" == "install" (
pip install -e .[notebook]
GOTO end
)
IF "%1%" == "clean" (
ECHO "Not implemented yet"
GOTO end
)
IF "%1%" == "all" (
make lint
make install
make examples
make docs
make test
GOTO end
)
ECHO "No command matched"
:end