Add windows darglint test batch file (#544)

This commit is contained in:
PeterYusuke 2023-02-20 11:20:50 +09:00 committed by GitHub
parent 7dfa0c848a
commit a0967fc04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
scripts/darglint_test.bat Normal file
View File

@ -0,0 +1,22 @@
@echo off
cd ..
echo "start darglint"
echo "pynecone folder"
for /R pynecone %%f in (*.py) do (
echo %%f
echo %%f|findstr /r "^.*pynecone\\pc\.py$"
if errorlevel 1 (
poetry run darglint %%f
)
)
echo "tests folder"
for /R tests %%f in (*.py) do (
echo %%f
poetry run darglint %%f
)
echo "darglint finished"
pause