mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
573f9d62b8
autoreformat while build
22 lines
653 B
Bash
Executable File
22 lines
653 B
Bash
Executable File
#!/bin/bash
|
|
|
|
scriptDir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
config=$scriptDir/codegen_config.json
|
|
schemaDir=$scriptDir/../../schema
|
|
outputDir=$scriptDir/pydivkit/div
|
|
|
|
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)
|