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
33 changes: 28 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,41 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
python-version: 3.13
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[signals] -r requirements-dev.txt
- name: Install mypy
run: |
python -m pip install mypy
- name: Run mypy
run: |
mypy .

pyright:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Set up Node
uses: actions/setup-node@v4
- name: Install PynamoDB dev dependencies
run: |
python -m pip install -e .[signals] -r requirements-dev.txt
- name: Install pyright
run: |
npm install -g pyright
- name: Run pyright
run: |
pyright .

build-docs:
runs-on: ubuntu-latest

Expand Down
9 changes: 9 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"exclude": [
"docs/conf.py",
"tests",
"bench"
],
"reportMissingImports": "error",
"reportMissingTypeStubs": false,
}
3 changes: 1 addition & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ freezegun

# only used in CI
coveralls
mypy==1.2.0
typing-extensions==4.5.0
typing-extensions>=4.5.0
pytest-cov
blinker==1.6.2

Expand Down
Loading