Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/workflows/codeQL.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: CodeQL

on:
push:
branches: [master]
pull_request:
push:
branches: [master]
pull_request:

jobs:
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
analyze:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python

- name: Autobuild (optional for Python)
uses: github/codeql-action/autobuild@v3
- name: Autobuild (optional for Python)
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
40 changes: 20 additions & 20 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Pre-commit

on:
push:
branches: [master]
pull_request:
workflow_dispatch:
push:
branches: [master]
pull_request:
workflow_dispatch:

jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Setup uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true

- name: Install Python 3.8.10
run: uv python install 3.8.10
- name: Install Python 3.8.10
run: uv python install 3.8.10

- name: set uv venv
run: uv venv
- name: Install pre-commit with uv
run: uv pip install pre-commit
- name: set uv venv
run: uv venv
- name: Install pre-commit with uv
run: uv pip install pre-commit

- name: Run pre-commit on all files
run: pre-commit run --all-files
- name: Run pre-commit on all files
run: uv run pre-commit run --all-files
38 changes: 19 additions & 19 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Ruff

on:
push:
branches: [master]
pull_request:
push:
branches: [master]
pull_request:

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Setup uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Setup Python
run: uv python install 3.8.10
- name: Setup Python
run: uv python install 3.8.10

- name: Set up venv
run: uv venv
- name: Install Ruff via uv
run: uv pip install ruff
- name: Set up venv
run: uv venv
- name: Install Ruff via uv
run: uv pip install ruff

- name: Run Ruff
run: ruff check --output-format=github .
- name: Run Ruff
run: uv run ruff check --output-format=github .
1 change: 1 addition & 0 deletions app/page_building/another_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
class contributor_window_template(PageTemplate):
"""贡献者窗口类
使用PageTemplate创建贡献者页面"""

def __init__(self, parent=None):
super().__init__(content_widget_class=contributor_page, parent=parent)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from app.tools.settings_access import *
from app.Language.obtain_language import *


# ==================================================
# 自定义抽设置
# ==================================================
Expand Down
Loading