-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
功能变动: - 适配 JKit Alpha - 上榜文章查询工具昵称更改提示优化 - 上榜文章查询工具默认倒序 - 更新捉虫计划奖励名单 - 更新开源库列表 - 更新依赖库 - 移除无用导入 错误修复: - 修复上榜文章查询工具数据不完整提示布局溢出问题 - 修复部分生僻字无法通过数据校验的问题 CI / CD: - 初始化静态检查
- Loading branch information
Showing
19 changed files
with
1,332 additions
and
1,397 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Static Check | ||
|
||
on: | ||
push: | ||
workflow_call: | ||
|
||
jobs: | ||
static-check-backend: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./backend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Poetry | ||
run: pipx install poetry | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
cache: "poetry" | ||
- name: Install Dependencies | ||
run: poetry install --all-extras --no-root | ||
- name: Lint With Ruff | ||
run: poetry run ruff check --output-format=github . | ||
- name: Type checking with Pyright | ||
run: poetry run pyright --warnings . | ||
static-check-frontend: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./frontend | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: true | ||
package_json_file: "frontend/package.json" | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: "pnpm" | ||
cache-dependency-path: frontend/pnpm-lock.yaml | ||
- name: Lint with Eslint | ||
run: pnpm eslint . | ||
- name: Style check with Prettier | ||
run: pnpm prettier --check . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import logging | ||
import logging.config | ||
|
||
from uvicorn import run as uvicorn_run | ||
|
||
|
Oops, something went wrong.