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 .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ jobs:
cache-dependency-path: playground/package-lock.json
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
- name: "Install Node dependencies"
run: npm ci
run: npm ci --ignore-scripts
working-directory: playground
- name: "Build playgrounds"
run: npm run dev:wasm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
package-manager-cache: false
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
- name: "Install Node dependencies"
run: npm ci
run: npm ci --ignore-scripts
working-directory: playground
- name: "Run TypeScript checks"
run: npm run check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-ty-playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
package-manager-cache: false
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
- name: "Install Node dependencies"
run: npm ci
run: npm ci --ignore-scripts
working-directory: playground
- name: "Run TypeScript checks"
run: npm run check
Expand Down
2 changes: 1 addition & 1 deletion crates/ruff_python_formatter/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def f(): # a
The other option is to use the playground (also check the playground README):

```shell
cd playground && npm install && npm run dev:wasm && npm run dev
cd playground && npm ci --ignore-scripts && npm run dev:wasm && npm run dev
```

Run`npm run dev:wasm` and reload the page in the browser to refresh.
Expand Down
2 changes: 1 addition & 1 deletion playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ In-browser playground for Ruff. Available [https://play.ruff.rs/](https://play.r

## Getting started

Install the NPM dependencies with `npm install`, and run the development server with
Install the NPM dependencies with `npm ci --ignore-scripts`, and run the development server with
`npm start --workspace ruff-playground` or `npm start --workspace ty-playground`.
You may need to restart the server after making changes to Ruff or ty to re-build the WASM
module.
Expand Down
2 changes: 1 addition & 1 deletion scripts/ty_benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

1. Build ty: `cargo build --bin ty --release`
1. `cd` into the benchmark directory: `cd scripts/ty_benchmark`
1. Install Pyright: `npm install`
1. Install Pyright: `npm ci --ignore-scripts`
1. Run benchmarks: `uv run benchmark`

Requires hyperfine 1.20 or newer.
Expand Down
2 changes: 1 addition & 1 deletion scripts/ty_benchmark/src/benchmark/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def __init__(self, *, path: Path | None = None):

if not self.path.exists():
print(
"Pyright executable not found. Did you ran `npm install` in the `ty_benchmark` directory?"
"Pyright executable not found. Did you run `npm ci` in the `ty_benchmark` directory?"
)

@override
Expand Down
4 changes: 2 additions & 2 deletions scripts/update_schemastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def update_schemastore(
cwd=schemastore_path,
)

# Run npm install
# Run npm ci
src = schemastore_path / "src"
check_call(["npm", "install"], cwd=schemastore_path)
check_call(["npm", "ci", "--ignore-scripts"], cwd=schemastore_path)

# Update the schema and format appropriately
schema = json.loads(RUFF_SCHEMA.read_text())
Expand Down