Skip to content

Commit 5fcf7ab

Browse files
authored
pin requests and allow pyright warnings (#193)
1 parent e154acc commit 5fcf7ab

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/lint-and-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ jobs:
9797
uses: jakebailey/pyright-action@v1
9898
with:
9999
working-directory: src/
100-
extra-args: --warnings
101100
Pylint:
102101
runs-on: windows-latest
103102
strategy:

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ignore = [
1212
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file
1313
[tool.pyright]
1414
typeCheckingMode = "strict"
15+
# Prefer `pyright: ignore`
16+
enableTypeIgnoreComments = false
1517
# Extra strict
1618
reportImplicitStringConcatenation = "error"
1719
reportCallInDefaultInitializer = "error"
@@ -21,7 +23,7 @@ reportUninitializedInstanceVariable = "error"
2123
reportUnnecessaryTypeIgnoreComment = "error"
2224
# Exclude from scanning when running pyright
2325
exclude = [
24-
# Auto generated, produces unecessary `# type: ignore`
26+
# Auto generated, fails some strict pyright checks
2527
"src/gen/",
2628
]
2729
# Ignore must be specified for Pylance to stop displaying errors

scripts/lint.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ add-trailing-comma $(git ls-files '**.py*') --py36-plus
1010

1111
Write-Host "`nRunning Pyright..."
1212
$Env:PYRIGHT_PYTHON_FORCE_VERSION = 'latest'
13-
pyright src/ --warnings
13+
pyright src/
1414
$exitCodes += $LastExitCode
1515
if ($LastExitCode -gt 0) {
1616
Write-Host "`Pyright failed ($LastExitCode)" -ForegroundColor Red

scripts/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ git+https://github.com/boppreh/keyboard.git#egg=keyboard # Fix install on macos
1616
numpy>=1.23.2 # Python 3.11 wheels
1717
opencv-python-headless>=4.6 # Breaking changes importing cv2.cv2
1818
packaging
19-
Pillow>=9.2 # gnome-screeshot checks
19+
Pillow>=9.2 # gnome-screeshot checks
2020
psutil
2121
PyAutoGUI
2222
# 6.4.1 fixes the rare Illegal Operation issue from RTADan, but the dev wheels are currently broken :/
2323
# 2.0.0-beta.2 contains the fixes if anyone needs it.
2424
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
2626
toml
2727
#
2828
# Build and compile resources

0 commit comments

Comments
 (0)