Skip to content

Commit aaa15a6

Browse files
authored
Merge pull request #124 from python-project-templates/copier-update-2026-08-14T19-10-54Z
Update from Copier (2026-08-14T19-10-54Z)
2 parents 4654ca5 + 1d9b498 commit aaa15a6

14 files changed

Lines changed: 555 additions & 100 deletions

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 84508d6
2+
_commit: ebda788
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rustjswasm

.vscode/settings.json

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

Cargo.lock

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

docs/wiki/contribute/Build-from-Source.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ make build
6262

6363
`python-template-rust` has linting and auto formatting.
6464

65-
| Language | Linter | Autoformatter | Description |
66-
| :------- | :---------- | :------------ | :---------- |
67-
| Python | `ruff` | `ruff` | Style |
68-
| Python | `ruff` | `ruff` | Imports |
69-
| Rust | `clippy` | `clippy` | Style |
70-
| Markdown | `mdformat` | `mdformat` | Style |
71-
| Markdown | `codespell` | | Spelling |
65+
| Language | Linter | Autoformatter | Description |
66+
| :--------- | :---------- | :------------ | :---------- |
67+
| Python | `ruff` | `ruff` | Style |
68+
| Python | `ruff` | `ruff` | Imports |
69+
| Rust | `clippy` | `clippy` | Style |
70+
| JavaScript | `oxlint` | `oxfmt` | Style |
71+
| Markdown | `mdformat` | `mdformat` | Style |
72+
| Markdown | `codespell` | | Spelling |
7273

7374
**Python Linting**
7475

js/.oxfmtrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"sortPackageJson": false
5+
}

js/.oxlintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"env": {
4+
"browser": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"rules": {
9+
"unicorn/no-empty-file": "off"
10+
}
11+
}

js/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
"build": "npm-run-all build:rust build:wasm-bindgen build:prod",
3535
"clean": "rm -rf dist lib playwright-report ../python_template_rust/extension",
3636
"dev": "npm-run-all -p start watch",
37-
"lint:js": "prettier --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
37+
"lint:js": "oxlint . && oxfmt --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
3838
"lint:rust": "cargo clippy --all-features && cargo fmt --all -- --check",
3939
"lint": "npm-run-all lint:*",
40-
"fix:js": "prettier --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
40+
"fix:js": "oxlint --fix . && oxfmt --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
4141
"fix:rust": "cargo fmt --all",
4242
"fix": "npm-run-all fix:*",
4343
"preinstall": "npx only-allow pnpm",
@@ -58,7 +58,8 @@
5858
"http-server": "^14.1.1",
5959
"nodemon": "^3.1.14",
6060
"npm-run-all": "^4.1.5",
61-
"prettier": "^3.9.6",
61+
"oxfmt": "^0.63.0",
62+
"oxlint": "^1.78.0",
6263
"typescript": "^7.0.2"
6364
}
6465
}

0 commit comments

Comments
 (0)