Autoreformat code while building

autoreformat while build
This commit is contained in:
mosquito
2022-10-27 15:57:10 +03:00
parent 096bb9f5e4
commit 573f9d62b8
135 changed files with 6847 additions and 1508 deletions
+8
View File
@@ -11,3 +11,11 @@ apiGenDir=$scriptDir/../../api_generator
cd $apiGenDir
echo Executing api_generator with [config = $config] [schemaDir = $schemaDir] [outputDir = $outputDir]
python3 -m api_generator -c $config -s $schemaDir -o $outputDir
echo "Install poetry"
python3 -m pip install poetry
echo "Install requirements"
(cd $outputDir/../.. && python3 -m poetry install --no-root -n)
echo "Reformat code"
(cd $outputDir/../.. && python3 -m poetry run gray $outputDir)