forked from gmonkman/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpep8me.cmd
More file actions
58 lines (45 loc) · 1.38 KB
/
pep8me.cmd
File metadata and controls
58 lines (45 loc) · 1.38 KB
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
@echo off
rem use --verbose for more output
echo.
IF "%~1" == "" GOTO endparse
echo Working for folders ...:
IF NOT [%1] == [] (
echo %1
autopep8 %1 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%2] == [] (
echo %2
autopep8 %2 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%3] == [] (
echo %3
autopep8 %3 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%4] == [] (
echo %4
autopep8 %4 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%5] == [] (
echo %5
autopep8 %5 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%6] == [] (
echo %6
autopep8 %6 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%7] == [] (
echo %7
autopep8 %7 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%8] == [] (
echo %8
autopep8 %8 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
IF NOT [%9] == [] (
echo %9
autopep8 %9 --recursive --in-place --exclude=*.bat,*.cmd,*.txt,*.ini,*.cfg --pep8-passes 100
)
echo Finished
exit
:endparse
echo No folder arguments. Folders should be in unix format(eg. c:/temp/mydir)