Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

## Banned Languages

- No TypeScript (use ReScript)
- No Node.js / npm / bun (use Deno)
- No TypeScript (use AffineScript)
- No Node.js / yarn (use Bun first; Deno, pnpm, npm as fallbacks)
- No Go (use Rust)
- No Python (use Julia or Rust)

Expand Down
13 changes: 9 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# Covers common ecosystems - remove unused ones for your project

version: 2

multi-ecosystem-groups:
js-locks:
schedule:
interval: "weekly"
updates:
# GitHub Actions - always include
- package-ecosystem: "github-actions"
Expand Down Expand Up @@ -40,11 +45,11 @@ updates:
schedule:
interval: "weekly"

# Node.js/npm
- package-ecosystem: "npm"
# Bun (bun.lock): in the js-locks group, so one PR moves package.json and bun.lock together (no npm entry: no npm lockfile here)
- package-ecosystem: "bun"
directory: "/"
schedule:
interval: "weekly"
multi-ecosystem-group: "js-locks"
patterns: ["*"]

# Python/pip
- package-ecosystem: "pip"
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- [ ] Tests pass (`just test` or equivalent)
- [ ] Code is formatted (`just fmt` or equivalent)
- [ ] Linter is clean (no new warnings or errors)
- [ ] No banned language patterns (no TypeScript, no npm/bun, no Go/Python)
- [ ] No banned language patterns (no TypeScript, no Node.js/yarn, no Go/Python)
- [ ] No `unsafe` blocks without `// SAFETY:` comments
- [ ] No banned functions (`believe_me`, `unsafeCoerce`, `Obj.magic`, `Admitted`, `sorry`)
- [ ] SPDX license headers present on all new/modified source files
Expand Down
2 changes: 1 addition & 1 deletion .machine_readable/MUST.contractile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
(must "no new TypeScript files")
(must "no new Python files")
(must "no new Go files")
(must "no npm/bun/yarn/pnpm dependencies — Deno only")
(must "no Node.js/yarn dependencies — Bun first, then Deno, pnpm, npm as fallbacks")

; Dangerous patterns
(must "no believe_me (Idris2)")
Expand Down
4 changes: 2 additions & 2 deletions .machine_readable/ai/.clinerules
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# Rust: transmute (unless FFI with // SAFETY: comment)

# BANNED LANGUAGES
# TypeScript -> ReScript
# Node.js / npm / bun -> Deno
# TypeScript -> AffineScript
# Node.js / yarn -> Bun first; Deno, pnpm, npm as fallbacks
# Go -> Rust
# Python -> Julia or Rust

Expand Down
4 changes: 2 additions & 2 deletions .machine_readable/ai/.cursorrules
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# Rust: transmute (unless FFI with // SAFETY: comment)

# BANNED LANGUAGES
# TypeScript -> use ReScript
# Node.js / npm / bun -> use Deno
# TypeScript -> use AffineScript
# Node.js / yarn -> use Bun first; Deno, pnpm, npm as fallbacks
# Go -> use Rust
# Python -> use Julia or Rust

Expand Down
4 changes: 2 additions & 2 deletions .machine_readable/ai/.windsurfrules
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
# Rust: transmute (unless FFI with // SAFETY: comment)

# BANNED LANGUAGES
# TypeScript -> ReScript
# Node.js / npm / bun -> Deno
# TypeScript -> AffineScript
# Node.js / yarn -> Bun first; Deno, pnpm, npm as fallbacks
# Go -> Rust
# Python -> Julia or Rust

Expand Down
2 changes: 1 addition & 1 deletion .machine_readable/anchors/ANCHOR.a2ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ owns = [

[implementation-policy]
allowed = ["Rust", "Idris2", "Zig", "Scheme", "Shell", "Just", "AsciiDoc", "Markdown"]
forbidden = ["Node.js", "npm"]
forbidden = ["Node.js", "yarn"]

[golden-path]
smoke-test-command = [
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: MPL-2.0
# package.json is JCS-canonical (LANGUAGE-POLICY §1.4); Prettier must not reformat it.
package.json
15 changes: 15 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/RSR_OUTLINE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ project/
=== Prohibited

* Python outside `salt/` directory
* TypeScript/JavaScript (use ReScript)
* TypeScript/JavaScript (use AffineScript)
* CUE (use Guile/Nickel)
* `Dockerfile` (use `Containerfile`)
* npm, Bun, pnpm, yarn (use Deno)
* Node.js, yarn (use Bun first; Deno, pnpm, npm as fallbacks)
* Go (use Rust)

== STATE.a2ml
Expand Down
4 changes: 2 additions & 2 deletions docs/practice/AI-CONVENTIONS.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ MAINTENANCE-CHECKLIST.a2ml, or SOFTWARE-DEVELOPMENT-APPROACH.a2ml in the reposit

| Banned | Use Instead |
|---------------------|--------------------|
| TypeScript | ReScript |
| Node.js / npm / bun | Deno |
| TypeScript | AffineScript |
| Node.js / yarn | Bun first; Deno, pnpm, npm as fallbacks |
| Go | Rust |
| Python | Julia / Rust |

Expand Down
36 changes: 11 additions & 25 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
[tools]
# Language runtimes
node = "latest"
python = "latest"
rust = "latest"
go = "latest"
zig = "latest"
java = "latest"
bun = "latest"
denojs = "latest"
bun = "1.4"

# Package managers
npm = "latest"
yarn = "latest"
pnpm = "latest"
pip = "latest"
cargo = "latest"
go-task = "latest"

# Formatting & Linting
gofmt = "latest"
black = "latest"
isort = "latest"
ruff = "latest"
prettier = "latest"
shfmt = "latest"
stylua = "latest"

# Build tools
cmake = "latest"
make = "latest"
ninja = "latest"

# Shell tools
Expand All @@ -38,20 +24,20 @@ gnu-tar = "latest"
gnu-grep = "latest"

# Testing
vitest = "latest"
pytest = "latest"
jest = "latest"

[env]
# Common environment variables
NODE_ENV = "development"
PYTHONDONTWRITEBYTECODE = "1"
PYTHONUNBUFFERED = "1"

# Task runner alias
[alias]
task = "go-task"
build = "cargo build --release || npm run build || go build"
test = "cargo test || npm test || go test ./..."
lint = "ruff check . || prettier --check . || black --check ."
fmt = "ruff format . || prettier --write . || black ."

[tasks.setup]
description = "Install pinned JS dev tools (Prettier) from bun.lock"
run = "bun install --frozen-lockfile"

[tasks.lint]
run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ."

[tasks.fmt]
run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ."
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"devDependencies": {
"prettier": "3.10.1"
},
"license": "MPL-2.0",
"name": "methodologies",
"private": true
}
Loading