-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdfabcd
commit d4b5aa9
Showing
16 changed files
with
331 additions
and
75 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
# Docs: https://github.com/actions/checkout | ||
- | ||
name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
architecture: x64 | ||
- | ||
name: Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }} | ||
- | ||
name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r docs/requirements.txt | ||
- | ||
name: Mkdocs | ||
run: | | ||
mkdocs build --verbose --clean --strict | ||
- | ||
name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./site |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
## Generic | ||
|
||
### Executable | ||
|
||
For the plugin to work, you need to define at least one executable file | ||
using either the <b>Global</b> or <b>Project</b> panel. | ||
|
||
Such a file is typically named `pyright.exe` and can be found in: | ||
|
||
* Global: Your Python interpreter directory | ||
* Virtual environment: `/venv/Scripts/` (Windows) or `/venv/bin` (Linux) | ||
|
||
You can also use a relative path. | ||
It would be interpreted as relative to the project directory. | ||
|
||
|
||
### Configuration file | ||
|
||
Despite being called "file", you can specify a path to a directory | ||
containing `pyright-config.json` and/or `pyproject.toml`. | ||
This path will be passed to the executable via [the `-p` option][1]. | ||
|
||
* If the executable is local, only the local path is used. | ||
* If the executable is global, the local path is used if it is specified, | ||
falling back to the global one. | ||
|
||
If neither paths are specified, the project directory is used. | ||
|
||
|
||
## Global | ||
|
||
### Always use global | ||
|
||
Check this option to always use the global executable and configuration file. | ||
|
||
|
||
[1]: https://microsoft.github.io/pyright/#/command-line |
File renamed without changes
Oops, something went wrong.