forked from mirror/Archipelago
* CI: strict mypy check in github actions
mypy_files.txt is a list of files that will fail the CI if mypy finds errors in them
* don't need these
* `Any` should be a way to silence the type checker
* restrict return Any
* CI: pyright in github actions
* fix mistake in translating from mypy
* missed another change from mypy to pyright
* pin pyright version
* add more paths that should trigger check
* use Python instead of bash
* type error for testing CI
* Revert "type error for testing CI"
This reverts commit 99f65f3dad.
* oops
* don't need to redirect output
16 lines
319 B
Python
16 lines
319 B
Python
from pathlib import Path
|
|
import subprocess
|
|
|
|
config = Path(__file__).parent / "pyright-config.json"
|
|
|
|
command = ("pyright", "-p", str(config))
|
|
print(" ".join(command))
|
|
|
|
try:
|
|
result = subprocess.run(command)
|
|
except FileNotFoundError as e:
|
|
print(f"{e} - Is pyright installed?")
|
|
exit(1)
|
|
|
|
exit(result.returncode)
|