Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 84508d6
_commit: ebda788
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: rustjswasm
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

4 changes: 2 additions & 2 deletions Cargo.lock

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

15 changes: 8 additions & 7 deletions docs/wiki/contribute/Build-from-Source.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ make build

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

| Language | Linter | Autoformatter | Description |
| :------- | :---------- | :------------ | :---------- |
| Python | `ruff` | `ruff` | Style |
| Python | `ruff` | `ruff` | Imports |
| Rust | `clippy` | `clippy` | Style |
| Markdown | `mdformat` | `mdformat` | Style |
| Markdown | `codespell` | | Spelling |
| Language | Linter | Autoformatter | Description |
| :--------- | :---------- | :------------ | :---------- |
| Python | `ruff` | `ruff` | Style |
| Python | `ruff` | `ruff` | Imports |
| Rust | `clippy` | `clippy` | Style |
| JavaScript | `oxlint` | `oxfmt` | Style |
| Markdown | `mdformat` | `mdformat` | Style |
| Markdown | `codespell` | | Spelling |

**Python Linting**

Expand Down
5 changes: 5 additions & 0 deletions js/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80,
"sortPackageJson": false
}
11 changes: 11 additions & 0 deletions js/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"unicorn/no-empty-file": "off"
}
}
7 changes: 4 additions & 3 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"build": "npm-run-all build:rust build:wasm-bindgen build:prod",
"clean": "rm -rf dist lib playwright-report ../python_template_rust/extension",
"dev": "npm-run-all -p start watch",
"lint:js": "prettier --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:js": "oxlint . && oxfmt --check \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"lint:rust": "cargo clippy --all-features && cargo fmt --all -- --check",
"lint": "npm-run-all lint:*",
"fix:js": "prettier --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:js": "oxlint --fix . && oxfmt --write \"src/**/*.{js,ts,jsx,tsx,css}\" \"tests/**/*.{js,ts,jsx,tsx}\" \"*.mjs\" \"*.json\"",
"fix:rust": "cargo fmt --all",
"fix": "npm-run-all fix:*",
"preinstall": "npx only-allow pnpm",
Expand All @@ -58,7 +58,8 @@
"http-server": "^14.1.1",
"nodemon": "^3.1.14",
"npm-run-all": "^4.1.5",
"prettier": "^3.9.6",
"oxfmt": "^0.63.0",
"oxlint": "^1.78.0",
"typescript": "^7.0.2"
}
}
Loading
Loading