Skip to content

Commit 32963bd

Browse files
committed
add pyright to the CI config
1 parent 16010c2 commit 32963bd

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.github/workflows/ci_extra.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- name: Lint with pycodestyle
3232
run: |
3333
pycodestyle pyformlang || true
34+
- name: Check with pyright
35+
run: |
36+
pyright --stats pyformlang
3437
- name: Test with pytest
3538
run: |
3639
pytest --showlocals -v pyformlang

.github/workflows/ci_feature.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Lint with pycodestyle
3636
run: |
3737
pycodestyle pyformlang || true
38+
- name: Check with pyright
39+
run: |
40+
pyright --stats pyformlang
3841
- name: Test with pytest
3942
run: |
4043
pytest --showlocals -v pyformlang

.github/workflows/ci_master.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
- name: Lint with pycodestyle
3535
run: |
3636
pycodestyle pyformlang || true
37+
- name: Check with pyright
38+
run: |
39+
pyright --stats pyformlang
3740
- name: Test with pytest
3841
run: |
3942
pytest --showlocals -v pyformlang

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sphinx_rtd_theme
1010
numpy
1111
pylint
1212
pycodestyle
13+
pyright
1314
pydot
1415
pygments>=2.7.4 # not directly required, pinned by Snyk to avoid a vulnerability
1516
pylint>=2.7.0 # not directly required, pinned by Snyk to avoid a vulnerability

0 commit comments

Comments
 (0)