소스 검색

Add windows darglint test batch file (#544)

PeterYusuke 2 년 전
부모
커밋
a0967fc04c
1개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 22 0
      scripts/darglint_test.bat

+ 22 - 0
scripts/darglint_test.bat

@@ -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