Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 23, 2024
1 parent 36b788b commit b111349
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions python/taichi/_lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def is_ci():
return os.environ.get("TI_CI", "") == "1"


package_root = os.path.join(
os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
)
package_root = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))


def get_core_shared_object():
Expand All @@ -106,9 +104,7 @@ def print_yellow_bold(*args, **kwargs):

def check_exists(src):
if not os.path.exists(src):
raise FileNotFoundError(
f'File "{src}" not exist. Installation corrupted or build incomplete?'
)
raise FileNotFoundError(f'File "{src}" not exist. Installation corrupted or build incomplete?')


ti_python_core = import_ti_python_core()
Expand Down Expand Up @@ -241,9 +237,7 @@ def warn_restricted_version():
)
print()
print_yellow_bold(" $ python3 -m pip install --upgrade pip")
print_yellow_bold(
" $ python3 -m pip install --force-reinstall taichi"
)
print_yellow_bold(" $ python3 -m pip install --force-reinstall taichi")
print()

print_yellow_bold(
Expand Down

0 comments on commit b111349

Please sign in to comment.