Skip to content

Commit

Permalink
Merge pull request #4500 from anarkiwi/pyr
Browse files Browse the repository at this point in the history
Add pyright.
  • Loading branch information
anarkiwi authored Apr 23, 2024
2 parents 60589bc + 78ab5ff commit 61ea1be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ jobs:
./pytype.sh ${{ env.PY_FILES_CHANGED }}
fi
fi
- name: Run pyright
# pyright is quite fast, so easier just to run global config every time.
run: |
./docker/pip_deps.sh --extra-requirements="codecheck-requirements.txt"
pyright
1 change: 1 addition & 0 deletions codecheck-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
black==24.4.0
flake8==7.0.0
pylint==3.1.0
pyright==1.1.359
pytype==2024.4.11
4 changes: 4 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"include": ["faucet", "tests", "ofctl_rest", "adapters", "clib"],
"typeCheckingMode": "off"
}

0 comments on commit 61ea1be

Please sign in to comment.