YouTubeDownloader v1.1.2
YouTube content downloader
Loading...
Searching...
No Matches
run_pylint.bat
Go to the documentation of this file.
1:: "run_pylint.bat"
2:: run pylint over code
3
4@echo off
5
6set MAIN_DIR=..\
7set TEST_DIR=Test
8set TARGET_DIR=Source
9set CONFIG_FILE=%TEST_DIR%\.pylintrc
10set LOG_FILE=%TEST_DIR%\pylint.log
11set PY_PATH=.venv\Scripts\python
12
13cd %MAIN_DIR%
14
15%PY_PATH% -m pylint --rcfile=%CONFIG_FILE% --reports=y --output-format=text --output=%LOG_FILE% %TARGET_DIR%
16echo 'pylint exit code: %ERRORLEVEL%'>>%LOG_FILE%
17start notepad %LOG_FILE%
18if %ERRORLEVEL% NEQ 0 (
19 type %LOG_FILE%
20 echo Pylint failed with error code %ERRORLEVEL%.
21 exit /b %ERRORLEVEL%
22) else (
23 type %LOG_FILE%
24 echo Pylint check passed.
25)