forked from ydataai/ydata-profiling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
81 lines (70 loc) · 1.47 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
@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/
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" (
pre-commit run --all-files
GOTO end
)
IF "%1" == "install" (
pip install -e .[notebook]
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