Skip to content

Commit fad540d

Browse files
{"schema":"decodex/commit/1","summary":"Land chore: align dependency and style tooling","authority":"manual"}
2 parents 484fed5 + 9e8b236 commit fad540d

16 files changed

Lines changed: 482 additions & 80 deletions

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/.env*
2+
**/.next
3+
**/node_modules
4+
**/npm-debug.log
5+
.git

.editorconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ max_line_length=100
1010
tab_width=4
1111
trim_trailing_whitespace=true
1212

13-
[*.py]
14-
charset=utf-8
15-
indent_size=4
16-
indent_style=space
17-
1813
[*.{sh,yml,yaml}]
1914
indent_size=2
2015
indent_style=space
21-
tab_width=8

.github/workflows/checks.yml

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,49 @@ jobs:
2222
name: Task cargo ${{ matrix.action }}
2323
runs-on: ubuntu-latest
2424
strategy:
25+
fail-fast: false
2526
matrix:
26-
action: [clippy, fmt, nextest]
27+
action: [clippy, fmt, nextest, vstyle]
2728
steps:
2829
- name: Fetch latest code
29-
uses: actions/checkout@v4
30+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
3031
- name: Setup build environment
3132
if: matrix.action != 'fmt'
3233
run: rustup show
33-
- uses: Swatinem/rust-cache@v2
34+
- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4
3435
if: matrix.action != 'fmt'
3536
with:
3637
prefix-key: ${{ env.CACHE_VERSION }}
3738
key: ${{ matrix.action }}
39+
- name: Install cargo-make
40+
uses: taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
41+
with:
42+
tool: cargo-make
43+
- name: Install taplo
44+
if: matrix.action == 'fmt'
45+
uses: taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
46+
with:
47+
tool: taplo
3848
- name: Cargo clippy
3949
if: matrix.action == 'clippy'
40-
uses: giraffate/clippy-action@v1
41-
with:
42-
clippy_flags: --workspace --all-features --all-targets --locked
50+
run: cargo make lint-rust
4351
- name: Cargo fmt
4452
if: matrix.action == 'fmt'
4553
run: |
4654
rustup toolchain install nightly
4755
rustup component add rustfmt --toolchain nightly
48-
cargo +nightly fmt --all -- --check
56+
cargo make fmt-check
4957
- name: Install cargo-nextest
5058
if: matrix.action == 'nextest'
51-
uses: taiki-e/install-action@nextest
59+
uses: taiki-e/install-action@c93ccc03e00cd0e08e494f5fd058a6c55a6a1907
60+
with:
61+
tool: nextest
5262
- name: Cargo nextest
5363
if: matrix.action == 'nextest'
54-
run: cargo nextest run --cargo-profile ci-dev --workspace --all-features --all-targets --locked
55-
- name: Fast fail
56-
uses: vishnudxb/cancel-workflow@v1.2
57-
if: failure()
58-
with:
59-
repo: hack-ink/unescaper
60-
workflow_id: ${{ github.run_id }}
61-
access_token: ${{ github.token }}
64+
run: cargo make test-rust
65+
- name: Install cargo-vstyle
66+
if: matrix.action == 'vstyle'
67+
run: cargo install --git https://github.com/hack-ink/vibe-style --rev f509613696c60fbc5e444072469024888d91d88b --locked
68+
- name: Cargo vstyle
69+
if: matrix.action == 'vstyle'
70+
run: cargo make lint-vstyle-rust

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Publish
20-
uses: softprops/action-gh-release@v2
20+
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b
2121
with:
2222
discussion_category_name: Announcements
2323
generate_release_notes: true
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Fetch latest code
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
3131
- name: Login
3232
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
3333
- name: Publish

.gitignore

Lines changed: 69 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,75 @@
1-
# Integrated development environment.
1+
# AI
2+
.agent
3+
.codex
4+
!apps/decodex-app/.codex/
5+
!apps/decodex-app/.codex/environments/
6+
!apps/decodex-app/.codex/environments/environment.toml
7+
8+
# Decodex Local Runtime
9+
.decodex
10+
.decodex-run-activity
11+
.decodex-run-control
12+
13+
# Editor
214
.vscode
15+
.zed
316

4-
# Package manager.
5-
## Cargo.
6-
target
7-
## NPM.
17+
# General Ignores
18+
*.bak
19+
*.log
20+
.env*
21+
.turbo
22+
model
23+
!apps/decodex/src/autonomy_signal/model/
24+
!apps/decodex/src/autonomy_signal/model/*.rs
25+
tmp
26+
27+
# Kubernetes
28+
.kube
29+
30+
# Language Specifics
31+
32+
## JavaScript/TypeScript
33+
*.tsbuildinfo
34+
.next
35+
.pnp
36+
.pnp.*
37+
.pnpm-debug.log*
38+
.vercel
39+
.vite
40+
.yarn/*
41+
!.yarn/patches
42+
!.yarn/plugins
43+
!.yarn/releases
44+
!.yarn/versions
45+
build
46+
coverage
47+
dist
48+
next-env.d.ts
849
node_modules
50+
npm-debug.log*
51+
out/
52+
site/.astro/
53+
site/dist/
54+
yarn-debug.log*
55+
yarn-error.log*
56+
57+
## Python
58+
.pytest_cache
59+
.ruff_cache
60+
.venv
61+
__pycache__
62+
63+
## Rust
64+
target
965

10-
# System.
66+
# Swift
67+
.build
68+
xcuserdata
69+
70+
# System
1171
.DS_Store
1272

13-
# Test data.
14-
*.bak
15-
.env
16-
tmp
73+
# Work Dirs
74+
.workspaces
75+
.worktrees

.prettierignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.next
2+
.pnp
3+
.pnp.*
4+
.yarn/*
5+
!.yarn/patches
6+
!.yarn/plugins
7+
!.yarn/releases
8+
!.yarn/versions
9+
apps/ui/**/*.gif
10+
apps/ui/**/*.jpg
11+
apps/ui/**/*.png
12+
apps/ui/**/*.svg
13+
apps/ui/**/*.ttf
14+
apps/ui/README.md
15+
apps/ui/public
16+
apps/ui/src/ui/Svg
17+
build
18+
coverage
19+
dist
20+
node_modules
21+
out

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"printWidth": 100,
6+
"tabWidth": 2
7+
}

.rustfmt.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Basic.
1+
# Basic
22
edition = "2024"
33
hard_tabs = true
44
max_width = 100
55
tab_spaces = 4
66

7-
# Import.
7+
# Imports
88
imports_granularity = "Crate"
99
reorder_imports = true
1010

11-
# Comments.
11+
# Comments
1212
comment_width = 100
1313
wrap_comments = true
1414

15-
# Misc.
15+
# Misc
1616
format_code_in_doc_comments = true
1717
inline_attribute_width = 100
1818
match_arm_blocks = false

.taplo.toml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
exclude = [
2+
"**/Makefile.toml",
3+
"*.bak",
4+
"*.log",
5+
"*.tsbuildinfo",
6+
".build",
7+
".build/**",
8+
".codex",
9+
".codex/**",
10+
".env*",
11+
".kube",
12+
".kube/**",
13+
".next",
14+
".next/**",
15+
".pnp.*",
16+
".pnpm-debug.log*",
17+
".pytest_cache",
18+
".pytest_cache/**",
19+
".ruff_cache",
20+
".ruff_cache/**",
21+
".turbo",
22+
".turbo/**",
23+
".venv",
24+
".venv/**",
25+
".vercel",
26+
".vercel/**",
27+
".vite",
28+
".vite/**",
29+
".vscode",
30+
".vscode/**",
31+
".workspaces",
32+
".workspaces/**",
33+
".worktrees",
34+
".worktrees/**",
35+
".zed",
36+
".zed/**",
37+
"Makefile.toml",
38+
"__pycache__",
39+
"__pycache__/**",
40+
"build",
41+
"build/**",
42+
"coverage",
43+
"coverage/**",
44+
"dist",
45+
"dist/**",
46+
"model",
47+
"model/**",
48+
"node_modules",
49+
"node_modules/**",
50+
"npm-debug.log*",
51+
"out",
52+
"out/**",
53+
"target",
54+
"target/**",
55+
"tmp",
56+
"tmp/**",
57+
"xcuserdata",
58+
"xcuserdata/**",
59+
"yarn-debug.log*",
60+
"yarn-error.log*",
61+
]
62+
63+
[formatting]
64+
align_comments = true
65+
align_entries = true
66+
allowed_blank_lines = 1
67+
array_auto_collapse = false
68+
array_auto_expand = false
69+
array_trailing_comma = true
70+
compact_arrays = true
71+
indent_string = "\t"
72+
reorder_arrays = true
73+
reorder_keys = true

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)