Skip to content

Commit edc6ed5

Browse files
authored
Use npm ci --ignore-scripts everywhere (#21742)
1 parent f052bd6 commit edc6ed5

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ jobs:
918918
cache-dependency-path: playground/package-lock.json
919919
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
920920
- name: "Install Node dependencies"
921-
run: npm ci
921+
run: npm ci --ignore-scripts
922922
working-directory: playground
923923
- name: "Build playgrounds"
924924
run: npm run dev:wasm

.github/workflows/publish-playground.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
package-manager-cache: false
3838
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
3939
- name: "Install Node dependencies"
40-
run: npm ci
40+
run: npm ci --ignore-scripts
4141
working-directory: playground
4242
- name: "Run TypeScript checks"
4343
run: npm run check

.github/workflows/publish-ty-playground.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
package-manager-cache: false
4242
- uses: jetli/wasm-bindgen-action@20b33e20595891ab1a0ed73145d8a21fc96e7c29 # v0.2.0
4343
- name: "Install Node dependencies"
44-
run: npm ci
44+
run: npm ci --ignore-scripts
4545
working-directory: playground
4646
- name: "Run TypeScript checks"
4747
run: npm run check

crates/ruff_python_formatter/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def f(): # a
7474
The other option is to use the playground (also check the playground README):
7575

7676
```shell
77-
cd playground && npm install && npm run dev:wasm && npm run dev
77+
cd playground && npm ci --ignore-scripts && npm run dev:wasm && npm run dev
7878
```
7979

8080
Run`npm run dev:wasm` and reload the page in the browser to refresh.

playground/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In-browser playground for Ruff. Available [https://play.ruff.rs/](https://play.r
44

55
## Getting started
66

7-
Install the NPM dependencies with `npm install`, and run the development server with
7+
Install the NPM dependencies with `npm ci --ignore-scripts`, and run the development server with
88
`npm start --workspace ruff-playground` or `npm start --workspace ty-playground`.
99
You may need to restart the server after making changes to Ruff or ty to re-build the WASM
1010
module.

scripts/ty_benchmark/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

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

1313
Requires hyperfine 1.20 or newer.

scripts/ty_benchmark/src/benchmark/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def __init__(self, *, path: Path | None = None):
185185

186186
if not self.path.exists():
187187
print(
188-
"Pyright executable not found. Did you ran `npm install` in the `ty_benchmark` directory?"
188+
"Pyright executable not found. Did you run `npm ci` in the `ty_benchmark` directory?"
189189
)
190190

191191
@override

scripts/update_schemastore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def update_schemastore(
8787
cwd=schemastore_path,
8888
)
8989

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

9494
# Update the schema and format appropriately
9595
schema = json.loads(RUFF_SCHEMA.read_text())

0 commit comments

Comments
 (0)