Skip to content

Commit 7e79a88

Browse files
committed
fix: Black and isort would not run properly.
1 parent 5727457 commit 7e79a88

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

entrypoint.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,28 @@
11
#!/bin/bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
24

35
openapi_python_client_version=$1
46
openapi_file_path=$2
57
openapi_url=$3
68
config_file_path=$4
79

810
if [[ "$openapi_python_client_version" != "NOT_SPECIFIED" ]]; then
9-
version_arg="--spec openapi-python-client==${openapi_python_client_version}"
11+
version_arg="openapi-python-client==${openapi_python_client_version}"
1012
else
11-
version_arg=""
13+
version_arg="openapi-python-client"
1214
fi
1315

1416
if [[ "$config_file_path" != "NOT_SPECIFIED" ]]; then
15-
config_arg="--config ${config_file_path}"
17+
config_arg="--config=${config_file_path}"
1618
else
1719
config_arg=""
1820
fi
1921

20-
openapi_document_path_or_url_arg="--path ${openapi_file_path}"
22+
openapi_document_path_or_url_arg="--path=${openapi_file_path}"
2123
if [[ "$openapi_url" != "NOT_SPECIFIED" ]]; then
22-
openapi_document_path_or_url_arg="--url ${openapi_url}"
24+
openapi_document_path_or_url_arg="--url=${openapi_url}"
2325
fi
2426

25-
pipx run ${version_arg} openapi-python-client generate ${config_arg} ${openapi_document_path_or_url_arg}
27+
pipx install "${version_arg}" --include-deps
28+
openapi-python-client generate ${config_arg} ${openapi_document_path_or_url_arg}

0 commit comments

Comments
 (0)