-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 添加pyright静态类型检查器 * 基于pyright修复全局静态类型 * 添加pyright检测器到ci * 修复ci缓存 * 添加ci扩展参数到pyright * 修复ci依赖下载错误
- Loading branch information
Showing
28 changed files
with
124 additions
and
104 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 |
---|---|---|
|
@@ -19,33 +19,32 @@ jobs: | |
# version_file_path: httpfpt/__init__.py | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: lint | ||
name: lint ${{ matrix.python-version }} | ||
strategy: | ||
matrix: | ||
python-version: ['3.8'] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
|
||
- name: Install Dependencies | ||
run: pip install ruff==0.0.262 pre-commit==3.2.2 | ||
|
||
- name: ruff check | ||
uses: chartboost/ruff-action@v1 | ||
with: | ||
args: '--config .ruff.toml' | ||
|
||
- name: black formatter | ||
uses: psf/black@stable | ||
with: | ||
options: '--skip-string-normalization --line-length 120' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: pre-commit | ||
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --verbose | ||
|
||
- name: pyright | ||
uses: jakebailey/pyright-action@v1 | ||
with: | ||
project: . | ||
verbose: true |
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 |
---|---|---|
|
@@ -78,7 +78,7 @@ httpfpt/log/ | |
.idea/ | ||
|
||
# online case data | ||
httpfpt/data/online/ | ||
httpfpt/data/online*/ | ||
|
||
# ruff | ||
httpfpt/.ruff_cache/ |
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
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
Oops, something went wrong.