mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-09-19 10:51:30 +00:00
`devEngines` is ignored by npm releases such as `10.8.2`, so those clients can install dependencies without applying the seven-day `min-release-age` setting added in #401. Declare the same minimum in `engines.npm` and enable `engine-strict` to make that legacy installer requirement fatal. Keep `devEngines` for its earlier checks on newer npm versions, and pin the build and checksum workflows to Node.js `24.19.0` so their bundled `npm` supports the policy. Related: astral-sh/setup-uv#1026 and astral-sh/ruff#27844 enforce the same legacy-aware `npm` version floor. astral-sh/ruff-action#400 covers Dependabot's update cooldown, and astral-sh/ruff-action#402 separately verifies registry signatures and available provenance. --------- Co-authored-by: zaniebot <242828183+zaniebot@users.noreply.github.com>
65 lines
1.9 KiB
JSON
65 lines
1.9 KiB
JSON
{
|
|
"name": "ruff-action",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "A GitHub Action to run Ruff, an extremely fast Python linter and code formatter.",
|
|
"main": "dist/ruff-action/index.cjs",
|
|
"engines": {
|
|
"npm": ">=11.10.0"
|
|
},
|
|
"devEngines": {
|
|
"packageManager": {
|
|
"name": "npm",
|
|
"version": ">=11.10.0",
|
|
"onFail": "error"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --noEmit",
|
|
"check": "biome check --write",
|
|
"package": "node scripts/build-dist.mjs",
|
|
"act": "act pull_request -W .github/workflows/test.yml --container-architecture linux/amd64 -s GITHUB_TOKEN=\"$(gh auth token)\"",
|
|
"update-known-checksums": "RUNNER_TEMP=known_checksums node dist/update-known-checksums/index.cjs src/download/checksum/known-checksums.ts \"$(gh auth token)\"",
|
|
"test:unit": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
|
|
"test": "npm run build && npm run test:unit",
|
|
"all": "npm run build && npm run check && npm run package && npm run test:unit"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/astral-sh/ruff-action.git"
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"python",
|
|
"ruff",
|
|
"action"
|
|
],
|
|
"author": "@eifinger",
|
|
"license": "Apache-2.0",
|
|
"dependencies": {
|
|
"@actions/core": "^3.0.0",
|
|
"@actions/exec": "^3.0.0",
|
|
"@actions/glob": "^0.7.0",
|
|
"@actions/tool-cache": "^4.0.0",
|
|
"@octokit/core": "^7.0.6",
|
|
"@octokit/plugin-paginate-rest": "^13.1.1",
|
|
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
"@renovatebot/pep440": "^4.2.1",
|
|
"smol-toml": "^1.6.0",
|
|
"undici": "^6.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.7",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/node": "^25.5.0",
|
|
"@types/semver": "^7.7.1",
|
|
"esbuild": "^0.27.4",
|
|
"jest": "^30.3.0",
|
|
"js-yaml": "^4.1.1",
|
|
"ts-jest": "^29.4.6",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|