mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-26 08:23:22 -07:00
CI: pyright in github actions
This commit is contained in:
5
.github/mypy_check.sh
vendored
5
.github/mypy_check.sh
vendored
@@ -1,5 +0,0 @@
|
||||
if [ "$(basename "$(pwd)")" = ".github" ]; then
|
||||
cd ..
|
||||
fi
|
||||
|
||||
xargs mypy --strict --follow-imports=silent --no-warn-unused-ignore --install-types --non-interactive typings < .github/mypy_files.txt
|
||||
2
.github/mypy_files.txt
vendored
2
.github/mypy_files.txt
vendored
@@ -1,2 +0,0 @@
|
||||
worlds/AutoSNIClient.py
|
||||
Patch.py
|
||||
26
.github/pyright-config.json
vendored
Normal file
26
.github/pyright-config.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"include": [
|
||||
"../worlds/AutoSNIClient.py",
|
||||
"../Patch.py"
|
||||
],
|
||||
|
||||
"exclude": [
|
||||
"**/__pycache__"
|
||||
],
|
||||
|
||||
"stubPath": "../typings",
|
||||
|
||||
"typeCheckingMode": "strict",
|
||||
"reportImplicitOverride": "error",
|
||||
"reportMissingImports": true,
|
||||
"reportMissingTypeStubs": true,
|
||||
|
||||
"pythonVersion": "3.8",
|
||||
"pythonPlatform": "Linux",
|
||||
|
||||
"executionEnvironments": [
|
||||
{
|
||||
"root": ".."
|
||||
}
|
||||
]
|
||||
}
|
||||
5
.github/type_check.sh
vendored
Executable file
5
.github/type_check.sh
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
if [ "$(basename "$(pwd)")" = ".github" ]; then
|
||||
cd ..
|
||||
fi
|
||||
|
||||
xargs pyright -p .github/pyright-config.json
|
||||
6
.github/workflows/strict-type-check.yml
vendored
6
.github/workflows/strict-type-check.yml
vendored
@@ -20,8 +20,8 @@ jobs:
|
||||
|
||||
- name: "Install dependencies"
|
||||
run: |
|
||||
python -m pip install --upgrade pip mypy
|
||||
python -m pip install --upgrade pip pyright
|
||||
python ModuleUpdate.py --append "WebHostLib/requirements.txt" --force --yes
|
||||
|
||||
- name: "mypy: strict check on specific files"
|
||||
run: .github/mypy_check.sh
|
||||
- name: "pyright: strict check on specific files"
|
||||
run: .github/type_check.sh
|
||||
|
||||
Reference in New Issue
Block a user