Skip to content

Commit

Permalink
use npx to run pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
apparebit committed May 25, 2024
1 parent 7311179 commit c39fd41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def println(s: str = "") -> None:

println(styled.h1("2. Type Checking"))
try:
subprocess.run(["./node_modules/.bin/pyright"], check=True)
subprocess.run(["npx", "pyright"], check=True)
except subprocess.CalledProcessError:
println(styled.failure("prettypretty failed to type check!"))
exit(1)
Expand Down
2 changes: 1 addition & 1 deletion test/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Symbols:


UNICODE_SYMBOLS = Symbols('═', '━', '─', '•', '⋅')
ASCII_SYMBOLS = Symbols('=', '-', '~', '.', '.')
ASCII_SYMBOLS = Symbols('=', '=', '-', '.', '.')
SYMBOLS = ASCII_SYMBOLS if os.name == 'nt' else UNICODE_SYMBOLS

# --------------------------------------------------------------------------------------
Expand Down

0 comments on commit c39fd41

Please sign in to comment.