From a0967fc04c67cf0eff277e9b044c4ddd21d6d7fb Mon Sep 17 00:00:00 2001 From: PeterYusuke <58464065+PeterYusuke@users.noreply.github.com> Date: Mon, 20 Feb 2023 11:20:50 +0900 Subject: [PATCH] Add windows darglint test batch file (#544) --- scripts/darglint_test.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/darglint_test.bat diff --git a/scripts/darglint_test.bat b/scripts/darglint_test.bat new file mode 100644 index 000000000..d192ad139 --- /dev/null +++ b/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