Skip to content

Commit 7c2c68f

Browse files
committed
🔧 Global formatting and update formatting
1 parent 4671230 commit 7c2c68f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+827
-656
lines changed

.ecrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script/* linguist-vendored
88
/icns2png.py linguist-vendored
99
/rollup.config.js linguist-vendored
1010
src-tauri/src/inject/* linguist-vendored
11-
src-tauri/src/.pake/* linguist-vendored
11+
src-tauri/src/.pake/* linguist-vendored

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github: ['tw93']
2-
custom: ['https://miaoyan.app/cats.html?name=Pake']
1+
github: ["tw93"]
2+
custom: ["https://miaoyan.app/cats.html?name=Pake"]

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Bug report
22
description: Problems with the software
3-
title: '[Bug] '
4-
labels: ['bug']
3+
title: "[Bug] "
4+
labels: ["bug"]
55
body:
66
- type: markdown
77
attributes:
@@ -73,4 +73,4 @@ body:
7373
- label: I'm willing to submit a PR!
7474
- type: markdown
7575
attributes:
76-
value: 'Thanks for completing our form!'
76+
value: "Thanks for completing our form!"

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Feature
22
description: Add new feature, improve code, and more
3-
labels: ['enhancement']
3+
labels: ["enhancement"]
44
body:
55
- type: markdown
66
attributes:
@@ -43,4 +43,4 @@ body:
4343
- label: I'm willing to submit a PR!
4444
- type: markdown
4545
attributes:
46-
value: 'Thanks for completing our form!'
46+
value: "Thanks for completing our form!"

.github/workflows/code-quality.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Code Quality Check
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
permissions:
9+
actions: write
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
formatting:
18+
name: Code Formatting Check
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "20"
27+
cache: "npm"
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Check EditorConfig compliance
33+
uses: editorconfig-checker/action-editorconfig-checker@main
34+
35+
- name: Run EditorConfig checker with exclusions
36+
run: editorconfig-checker -exclude 'Cargo\.lock|dist/.*|.*\.(md|icns|ico|png|jpg|jpeg|gif|svg|desktop|wxs|plist|toml)$|cli\.js$|node_modules/.*|target/.*|src-tauri/(target|icons|png)/.*'
37+
38+
- name: Check Prettier formatting
39+
run: npx prettier --check . --ignore-unknown
40+
41+
rust-quality:
42+
name: Rust Code Quality
43+
runs-on: ${{ matrix.os }}
44+
strategy:
45+
matrix:
46+
os: [ubuntu-latest, windows-latest, macos-latest]
47+
fail-fast: false
48+
defaults:
49+
run:
50+
shell: bash
51+
working-directory: src-tauri
52+
steps:
53+
- uses: actions/checkout@v4
54+
55+
- uses: actions-rust-lang/setup-rust-toolchain@v1
56+
with:
57+
components: rustfmt, clippy
58+
59+
- uses: rui314/setup-mold@v1
60+
if: matrix.os == 'ubuntu-latest'
61+
62+
- uses: taiki-e/install-action@v1
63+
with:
64+
tool: cargo-hack
65+
66+
- name: Install Ubuntu dependencies
67+
if: matrix.os == 'ubuntu-latest'
68+
uses: awalsh128/[email protected]
69+
with:
70+
packages: libdbus-1-dev libsoup3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
71+
version: 1.0
72+
73+
- name: Check Rust formatting
74+
run: cargo fmt --all -- --color=always --check
75+
76+
- name: Run Clippy lints
77+
run: cargo hack --feature-powerset --exclude-features cli-build --no-dev-deps clippy

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build and Publish Docker Image
22

33
on:
4-
workflow_dispatch: # Manual
4+
workflow_dispatch: # Manual
55

66
env:
77
REGISTRY: ghcr.io

.github/workflows/editorconfig-check.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/pake-cli.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,55 @@ on:
33
workflow_dispatch:
44
inputs:
55
platform:
6-
description: 'Platform'
6+
description: "Platform"
77
required: true
8-
default: 'macos-latest'
8+
default: "macos-latest"
99
type: choice
1010
options:
11-
- 'windows-latest'
12-
- 'macos-latest'
13-
- 'ubuntu-24.04'
11+
- "windows-latest"
12+
- "macos-latest"
13+
- "ubuntu-24.04"
1414
url:
15-
description: 'URL'
15+
description: "URL"
1616
required: true
1717
name:
18-
description: 'Name, English, Linux no capital'
18+
description: "Name, English, Linux no capital"
1919
required: true
2020
icon:
21-
description: 'Icon, Image URL, Optional'
21+
description: "Icon, Image URL, Optional"
2222
required: false
2323
width:
24-
description: 'Width, Optional'
24+
description: "Width, Optional"
2525
required: false
26-
default: '1200'
26+
default: "1200"
2727
height:
28-
description: 'Height, Optional'
28+
description: "Height, Optional"
2929
required: false
30-
default: '780'
30+
default: "780"
3131
fullscreen:
32-
description: 'Fullscreen, At startup, Optional'
32+
description: "Fullscreen, At startup, Optional"
3333
required: false
3434
type: boolean
3535
default: false
3636
hide_title_bar:
37-
description: 'Hide TitleBar, MacOS only, Optional'
37+
description: "Hide TitleBar, MacOS only, Optional"
3838
required: false
3939
type: boolean
4040
default: false
4141
multi_arch:
42-
description: 'MultiArch, MacOS only, Optional'
42+
description: "MultiArch, MacOS only, Optional"
4343
required: false
4444
type: boolean
4545
default: false
4646
targets:
47-
description: 'Targets, Linux only, Optional'
47+
description: "Targets, Linux only, Optional"
4848
required: false
49-
default: 'deb'
49+
default: "deb"
5050
type: choice
5151
options:
52-
- 'deb'
53-
- 'appimage'
54-
- 'rpm'
52+
- "deb"
53+
- "appimage"
54+
- "rpm"
5555

5656
jobs:
5757
build:

.github/workflows/pake_build_next.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Build All Popular Apps
22
on:
33
push:
44
tags:
5-
- 'V*'
5+
- "V*"
66

77
jobs:
88
read_apps_config:

0 commit comments

Comments
 (0)