mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-05-19 15:44:46 +00:00
Change Prettier settings (#36)
## Summary I know this is a little tedious but I'd prefer to use the same settings as in Ruff.
This commit is contained in:
parent
1785c7bde0
commit
182c9c7e92
32 changed files with 5536 additions and 5497 deletions
|
@ -1,9 +1,9 @@
|
|||
import * as core from '@actions/core'
|
||||
import * as core from "@actions/core";
|
||||
|
||||
export const version = core.getInput('version')
|
||||
export const checkSum = core.getInput('checksum')
|
||||
export const enableCache = core.getInput('enable-cache') === 'true'
|
||||
export const cacheSuffix = core.getInput('cache-suffix') || ''
|
||||
export const cacheLocalPath = core.getInput('cache-local-path')
|
||||
export const githubToken = core.getInput('github-token')
|
||||
export const cacheDependencyGlob = core.getInput('cache-dependency-glob')
|
||||
export const version = core.getInput("version");
|
||||
export const checkSum = core.getInput("checksum");
|
||||
export const enableCache = core.getInput("enable-cache") === "true";
|
||||
export const cacheSuffix = core.getInput("cache-suffix") || "";
|
||||
export const cacheLocalPath = core.getInput("cache-local-path");
|
||||
export const githubToken = core.getInput("github-token");
|
||||
export const cacheDependencyGlob = core.getInput("cache-dependency-glob");
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
export type Platform =
|
||||
| 'unknown-linux-gnu'
|
||||
| 'unknown-linux-musl'
|
||||
| 'unknown-linux-musleabihf'
|
||||
| 'apple-darwin'
|
||||
| 'pc-windows-msvc'
|
||||
export type Architecture = 'i686' | 'x86_64' | 'aarch64'
|
||||
| "unknown-linux-gnu"
|
||||
| "unknown-linux-musl"
|
||||
| "unknown-linux-musleabihf"
|
||||
| "apple-darwin"
|
||||
| "pc-windows-msvc";
|
||||
export type Architecture = "i686" | "x86_64" | "aarch64";
|
||||
|
||||
export function getArch(): Architecture | undefined {
|
||||
const arch = process.arch
|
||||
const archMapping: {[key: string]: Architecture} = {
|
||||
ia32: 'i686',
|
||||
x64: 'x86_64',
|
||||
arm64: 'aarch64'
|
||||
}
|
||||
const arch = process.arch;
|
||||
const archMapping: { [key: string]: Architecture } = {
|
||||
ia32: "i686",
|
||||
x64: "x86_64",
|
||||
arm64: "aarch64",
|
||||
};
|
||||
|
||||
if (arch in archMapping) {
|
||||
return archMapping[arch]
|
||||
return archMapping[arch];
|
||||
}
|
||||
}
|
||||
|
||||
export function getPlatform(): Platform | undefined {
|
||||
const platform = process.platform
|
||||
const platformMapping: {[key: string]: Platform} = {
|
||||
linux: 'unknown-linux-gnu',
|
||||
darwin: 'apple-darwin',
|
||||
win32: 'pc-windows-msvc'
|
||||
}
|
||||
const platform = process.platform;
|
||||
const platformMapping: { [key: string]: Platform } = {
|
||||
linux: "unknown-linux-gnu",
|
||||
darwin: "apple-darwin",
|
||||
win32: "pc-windows-msvc",
|
||||
};
|
||||
|
||||
if (platform in platformMapping) {
|
||||
return platformMapping[platform]
|
||||
return platformMapping[platform];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
export const REPO = 'uv'
|
||||
export const OWNER = 'astral-sh'
|
||||
export const TOOL_CACHE_NAME = 'uv'
|
||||
export const REPO = "uv";
|
||||
export const OWNER = "astral-sh";
|
||||
export const TOOL_CACHE_NAME = "uv";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue