Skip to content

Commit 101fbf5

Browse files
committed
Indent python code
1 parent c379517 commit 101fbf5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

analyze-project/action.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ runs:
2323
id: check_tools
2424
run: |
2525
python - <<EOF
26-
import os
27-
from importlib.metadata import version, PackageNotFoundError
26+
import os
27+
from importlib.metadata import version, PackageNotFoundError
2828
29-
def is_installed(pkg_name):
30-
try:
31-
version(pkg_name)
32-
return "true"
33-
except PackageNotFoundError:
34-
return "false"
29+
def is_installed(pkg_name):
30+
try:
31+
version(pkg_name)
32+
return "true"
33+
except PackageNotFoundError:
34+
return "false"
3535
36-
print(f"::set-output name=mypy::{is_installed('mypy')}")
37-
print(f"::set-output name=pyright::{is_installed('pyright')}")
38-
EOF
36+
print(f"::set-output name=mypy::{is_installed('mypy')}")
37+
print(f"::set-output name=pyright::{is_installed('pyright')}")
38+
EOF
3939
shell: bash
4040
- name: Get package name and version
4141
id: get_package_info

0 commit comments

Comments
 (0)