-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a new `check` extra including `pyright` and `pre-commit`. * Configure pyright to run in CI. * Use pyright action v2 * Install dependencies before running pyright. * Fix sync error. * Revert unnecessary bumps in dev.txt * Ignore the tests folder correctly. * Add appdirs stubs * Re-enable reportUnusedExpression * Add triaging comments for rule disables * Revert unnecessary project.toml formatting change * Revert unnecessary indentation in dev.txt * Update pyproject.toml Co-authored-by: Isabel Zimmerman <[email protected]> * Move pyright comments to a tracking issue. * Revert removal of config sections in pyproject.toml. * add check deps into toml
- Loading branch information
1 parent
8e97eda
commit d821b76
Showing
5 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,20 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
- uses: pre-commit/[email protected] | ||
|
||
pyright: | ||
name: "Run Pyright" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 # Use the maximum version supported by python-pins | ||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[check] | ||
- uses: jakebailey/pyright-action@v2 | ||
with: | ||
version: 1.1.372 # Manually sync with setup.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters