Skip to content

Commit

Permalink
Merge pull request #153 from tompollard/tp/pyright_workflow
Browse files Browse the repository at this point in the history
[WIP] Add pyright type checks to GitHub workflow
  • Loading branch information
tompollard committed May 1, 2023
2 parents e550f5e + fc01943 commit 3efbfea
Show file tree
Hide file tree
Showing 3 changed files with 727 additions and 668 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/python-package.yml
Expand Up @@ -38,6 +38,9 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --statistics
- name: Type check with pyright
run: |
pyright tableone
- name: Test with pytest
run: |
pytest -vv --cov-report term-missing --cov tableone | tee coverage-report-${{ matrix.python-version }}.txt
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -3,6 +3,7 @@ Jinja2==3.1.2
numpy==1.23.2
openpyxl==3.1.2
pandas==2.0.0
pyright==1.1.305
pytest-cov==3.0.0
scipy==1.10.1
statsmodels==0.13.5
Expand Down

0 comments on commit 3efbfea

Please sign in to comment.