forked from AAA3A-AAA3A/AAA3A-cogs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
42 lines (33 loc) · 1005 Bytes
/
make.bat
File metadata and controls
42 lines (33 loc) · 1005 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
41
42
@echo off
call %USERPROFILE%\redenv\Scripts\activate.bat
if [%1] == [] goto help
REM This allows us to expand variables at execution
setlocal ENABLEDELAYEDEXPANSION
goto %1
:reformat
isort .
black .
exit /B %ERRORLEVEL%
:isort
isort .
exit /B %ERRORLEVEL%
:black
black .
exit /B %ERRORLEVEL%
:stylediff
isort --atomic --check --diff --line-length 99 --use-parentheses .
black --check --diff -l 99 .
exit /B %ERRORLEVEL%
:crowdin
redgettext . --command-docstrings --omit-empty --recursive --verbose --include-context --exclude-files "**/AAA3A_utils/*"
exit /B %ERRORLEVEL%
:help
echo Usage:
echo make ^<command^>
echo.
echo Commands:
echo reformat Reformat all .py files being tracked by git.
echo isort Reformat all .py files only with isort.
echo black Reformat all .py files only with black.
echo stylediff Check .py files for style diffs.
echo crowdin Create translations source files.