File tree 4 files changed +6
-5
lines changed 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 97
97
uses : jakebailey/pyright-action@v1
98
98
with :
99
99
working-directory : src/
100
- extra-args : --warnings
101
100
Pylint :
102
101
runs-on : windows-latest
103
102
strategy :
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ ignore = [
12
12
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
13
13
[tool .pyright ]
14
14
typeCheckingMode = " strict"
15
+ # Prefer `pyright: ignore`
16
+ enableTypeIgnoreComments = false
15
17
# Extra strict
16
18
reportImplicitStringConcatenation = " error"
17
19
reportCallInDefaultInitializer = " error"
@@ -21,7 +23,7 @@ reportUninitializedInstanceVariable = "error"
21
23
reportUnnecessaryTypeIgnoreComment = " error"
22
24
# Exclude from scanning when running pyright
23
25
exclude = [
24
- # Auto generated, produces unecessary `# type: ignore`
26
+ # Auto generated, fails some strict pyright checks
25
27
" src/gen/" ,
26
28
]
27
29
# Ignore must be specified for Pylance to stop displaying errors
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ add-trailing-comma $(git ls-files '**.py*') --py36-plus
10
10
11
11
Write-Host " `n Running Pyright..."
12
12
$Env: PYRIGHT_PYTHON_FORCE_VERSION = ' latest'
13
- pyright src/ -- warnings
13
+ pyright src/
14
14
$exitCodes += $LastExitCode
15
15
if ($LastExitCode -gt 0 ) {
16
16
Write-Host " `Pyright failed ($LastExitCode )" - ForegroundColor Red
Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ git+https://github.com/boppreh/keyboard.git#egg=keyboard # Fix install on macos
16
16
numpy >= 1.23.2 # Python 3.11 wheels
17
17
opencv-python-headless >= 4.6 # Breaking changes importing cv2.cv2
18
18
packaging
19
- Pillow >= 9.2 # gnome-screeshot checks
19
+ Pillow >= 9.2 # gnome-screeshot checks
20
20
psutil
21
21
PyAutoGUI
22
22
# 6.4.1 fixes the rare Illegal Operation issue from RTADan, but the dev wheels are currently broken :/
23
23
# 2.0.0-beta.2 contains the fixes if anyone needs it.
24
24
PyQt6 >= 6.4.0 # Python 3.11 support
25
- requests
25
+ requests <= 2.28.1 # 2.28.2 has issues with PyInstaller https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/534
26
26
toml
27
27
#
28
28
# Build and compile resources
You can’t perform that action at this time.
0 commit comments