File tree Expand file tree Collapse file tree 5 files changed +62
-60
lines changed Expand file tree Collapse file tree 5 files changed +62
-60
lines changed Original file line number Diff line number Diff line change 11name : CodeQL
22
33on :
4- push :
5- branches : [master]
6- pull_request :
4+ push :
5+ branches : [master]
6+ pull_request :
77
88jobs :
9- analyze :
10- name : CodeQL Analysis
11- runs-on : ubuntu-latest
12- permissions :
13- actions : read
14- contents : read
15- security-events : write
9+ analyze :
10+ name : CodeQL Analysis
11+ runs-on : ubuntu-latest
12+ permissions :
13+ actions : read
14+ contents : read
15+ security-events : write
1616
17- steps :
18- - name : Checkout repository
19- uses : actions/checkout@v4
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
2020
21- - name : Initialize CodeQL
22- uses : github/codeql-action/init@v3
23- with :
24- languages : python
21+ - name : Initialize CodeQL
22+ uses : github/codeql-action/init@v3
23+ with :
24+ languages : python
2525
26- - name : Autobuild (optional for Python)
27- uses : github/codeql-action/autobuild@v3
26+ - name : Autobuild (optional for Python)
27+ uses : github/codeql-action/autobuild@v3
2828
29- - name : Perform CodeQL Analysis
30- uses : github/codeql-action/analyze@v3
29+ - name : Perform CodeQL Analysis
30+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change 11name : Pre-commit
22
33on :
4- push :
5- branches : [master]
6- pull_request :
7- workflow_dispatch :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ workflow_dispatch :
88
99jobs :
10- pre-commit :
11- runs-on : ubuntu-22.04
12- steps :
13- - uses : actions/checkout@v4
10+ pre-commit :
11+ runs-on : ubuntu-22.04
12+ steps :
13+ - uses : actions/checkout@v4
1414
15- - name : Setup uv
16- uses : astral-sh/setup-uv@v4
17- with :
18- enable-cache : true
15+ - name : Setup uv
16+ uses : astral-sh/setup-uv@v4
17+ with :
18+ enable-cache : true
1919
20- - name : Install Python 3.8.10
21- run : uv python install 3.8.10
20+ - name : Install Python 3.8.10
21+ run : uv python install 3.8.10
2222
23- - name : set uv venv
24- run : uv venv
25- - name : Install pre-commit with uv
26- run : uv pip install pre-commit
23+ - name : set uv venv
24+ run : uv venv
25+ - name : Install pre-commit with uv
26+ run : uv pip install pre-commit
2727
28- - name : Run pre-commit on all files
29- run : pre-commit run --all-files
28+ - name : Run pre-commit on all files
29+ run : uv run pre-commit run --all-files
Original file line number Diff line number Diff line change 11name : Ruff
22
33on :
4- push :
5- branches : [master]
6- pull_request :
4+ push :
5+ branches : [master]
6+ pull_request :
77
88jobs :
9- ruff :
10- runs-on : ubuntu-latest
11- steps :
12- - uses : actions/checkout@v4
9+ ruff :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
1313
14- - name : Setup uv
15- uses : astral-sh/setup-uv@v3
16- with :
17- enable-cache : true
14+ - name : Setup uv
15+ uses : astral-sh/setup-uv@v3
16+ with :
17+ enable-cache : true
1818
19- - name : Setup Python
20- run : uv python install 3.8.10
19+ - name : Setup Python
20+ run : uv python install 3.8.10
2121
22- - name : Set up venv
23- run : uv venv
24- - name : Install Ruff via uv
25- run : uv pip install ruff
22+ - name : Set up venv
23+ run : uv venv
24+ - name : Install Ruff via uv
25+ run : uv pip install ruff
2626
27- - name : Run Ruff
28- run : ruff check --output-format=github .
27+ - name : Run Ruff
28+ run : uv run ruff check --output-format=github .
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ def create_group_setting_window():
151151class contributor_window_template (PageTemplate ):
152152 """贡献者窗口类
153153 使用PageTemplate创建贡献者页面"""
154+
154155 def __init__ (self , parent = None ):
155156 super ().__init__ (content_widget_class = contributor_page , parent = parent )
156157
Original file line number Diff line number Diff line change 1414from app .tools .settings_access import *
1515from app .Language .obtain_language import *
1616
17+
1718# ==================================================
1819# 自定义抽设置
1920# ==================================================
You can’t perform that action at this time.
0 commit comments