File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ on : [ push, pull_request ]
2+ name : Pyright type checking
3+ jobs :
4+ pyright :
5+ runs-on : ubuntu-latest
6+ container :
7+ image : archlinux/archlinux:latest
8+ steps :
9+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
10+ - name : Prepare arch
11+ run : |
12+ pacman-key --init
13+ pacman --noconfirm -Sy archlinux-keyring
14+ pacman --noconfirm -Syyu
15+ pacman --noconfirm -Sy python-pip python-pyparted pkgconfig gcc nodejs npm
16+ - run : pip install --break-system-packages --upgrade pip
17+ - name : Install dependencies
18+ run : pip install --break-system-packages .[dev]
19+ - name : Install Pyright
20+ run : npm install pyright
21+ - name : Display Pyright version
22+ run : npm exec pyright --version
23+ - name : Run Pyright
24+ run : npm exec pyright
Original file line number Diff line number Diff line change @@ -230,3 +230,29 @@ ignore = [
230230
231231[tool .ruff .lint .mccabe ]
232232max-complexity = 40
233+
234+ [tool .pyright ]
235+ pythonVersion = " 3.12"
236+ typeCheckingMode = " strict"
237+ exclude = [" build/" ]
238+ reportArgumentType = false
239+ reportAttributeAccessIssue = false
240+ reportMatchNotExhaustive = false
241+ reportMissingTypeStubs = false
242+ reportPrivateUsage = false
243+ reportTypedDictNotRequiredAccess = false
244+ reportUnknownArgumentType = false
245+ reportUnknownLambdaType = false
246+ reportUnknownMemberType = false
247+ reportUnknownVariableType = false
248+ reportUnnecessaryComparison = false
249+
250+ # Additional flags that are not included in strict mode
251+ deprecateTypingAliases = true
252+ reportImplicitOverride = true
253+ reportImportCycles = false
254+ reportPropertyTypeMismatch = true
255+ reportShadowedImports = true
256+ strictDictionaryInference = true
257+ strictListInference = true
258+ strictSetInference = true
You can’t perform that action at this time.
0 commit comments