-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroboshed.cmd
More file actions
40 lines (28 loc) · 981 Bytes
/
roboshed.cmd
File metadata and controls
40 lines (28 loc) · 981 Bytes
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
@ECHO OFF
git -C C:\clones\pandas-stubs pull
@REM git -C C:\clones\typeshed pull
PUSHd C:\apps\stubFileNotFound
ROBOCOPY C:\clones\pandas-stubs\pandas-stubs stubs\pandas /S /MT /NJH /NDL /NFL
@REM ROBOCOPY C:\clones\typeshed\stdlib stubs\stdlib /S /MT /NJH /NDL /NFL
IF NOT DEFINED VIRTUAL_ENV CALL .venv\Scripts\activate.bat
POPd
PUSHd C:\apps\stubFileNotFound\stubs
@REM START /MIN "stubdefaulter-stdlib" stubdefaulter --stdlib-path stdlib --fix --add-complex-defaults
FOR /F %%G IN ('dir /B /AD') DO (
IF NOT "%%G"=="stdlib" (
START /MIN "stubdefaulter-%%G" stubdefaulter --packages %%G --fix --add-complex-defaults
PING -n 3 127.0.0.1>nul
@REM Wait 2 seconds
)
)
FOR /F %%G IN ('dir /B *.pyi') DO (
IF NOT "%%G"=="stdlib" (
START /MIN "stubdefaulter-%%G" stubdefaulter --packages %%G --fix --add-complex-defaults
PING -n 3 127.0.0.1>nul
@REM Wait 2 seconds
)
)
POPd
PUSHd C:\apps\stubFileNotFound
py -m stubFileNotFound.missing2AnyTransformers
POPd