Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
AutoDuck/*.fmt text eol=crlf
*.dsp text eol=crlf
*.dsw text eol=crlf
*.py text eol=crlf
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
if-no-files-found: error

merge:
runs-on: windows-latest
runs-on: ubuntu-latest
needs: [test, build_arm64]
steps:
- name: Merge Artifacts
Expand All @@ -142,7 +142,7 @@ jobs:

# This job can be run locally by running `pre-commit run`
checkers:
runs-on: windows-2022
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand All @@ -167,14 +167,16 @@ jobs:
- run: |
clang-format --Werror --dry-run $(git ls-files '*.cpp' ':!:com/win32comext/mapi/src/MAPIStubLibrary/')
if ($LastExitCode -ne 0) { exit $LastExitCode }
shell: pwsh
if: ${{ !cancelled() }}
- run: |
clang-format --Werror --dry-run $(git ls-files '*.h' ':!:Pythonwin/Scintilla/' ':!:com/win32comext/mapi/src/MAPIStubLibrary/')
if ($LastExitCode -ne 0) { exit $LastExitCode }
shell: pwsh
if: ${{ !cancelled() }}

type-checkers:
runs-on: windows-2022
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
Expand Down
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[mypy]
show_column_numbers = true
; Needs to be set for non-Windows CI runners
platform = win32
; Target the oldest supported version in editors and default CLI
python_version = 3.8

Expand Down
4 changes: 4 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"typeCheckingMode": "basic",
// Needs to be set for non-Windows CI runners
"pythonPlatform": "Windows",
// Target the oldest supported version in editors and default CLI
"pythonVersion": "3.9",
// Keep it simple for now by allowing both mypy and pyright to use `type: ignore`
"enableTypeIgnoreComments": true,
// Exclude from scanning when running pyright
"exclude": [
".git/", // Avoids scanning git branch names ending in ".py"
".venv/",
"build/",
// Vendored
"Pythonwin/Scintilla/",
Expand All @@ -16,6 +19,7 @@
"**/Test/",
"**/test/",
"**/Demos/",
"**/demos/",
"**/demo/",
],
// Packages that will be accessible globally.
Expand Down