瀏覽代碼

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