(options: {
venvPath: string;
projectDir: string;
locked?: boolean;
frozen?: boolean;
noBuild?: boolean;
noInstallProject?: boolean;
pythonPlatform?: string;
})
| 129 | } |
| 130 | |
| 131 | async sync(options: { |
| 132 | venvPath: string; |
| 133 | projectDir: string; |
| 134 | locked?: boolean; |
| 135 | frozen?: boolean; |
| 136 | noBuild?: boolean; |
| 137 | noInstallProject?: boolean; |
| 138 | pythonPlatform?: string; |
| 139 | }): Promise<void> { |
| 140 | const { |
| 141 | venvPath, |
| 142 | projectDir, |
| 143 | locked, |
| 144 | frozen, |
| 145 | noBuild, |
| 146 | noInstallProject, |
| 147 | pythonPlatform, |
| 148 | } = options; |
| 149 | const args = ['sync', '--active', '--no-dev', '--link-mode', 'hardlink']; |
| 150 | if (frozen) { |
| 151 | args.push('--frozen'); |
| 152 | } else if (locked) { |
| 153 | args.push('--locked'); |
| 154 | } |
| 155 | if (noBuild) { |
| 156 | args.push('--no-build'); |
| 157 | } |
| 158 | if (noInstallProject) { |
| 159 | args.push('--no-install-project'); |
| 160 | } |
| 161 | if (pythonPlatform) { |
| 162 | args.push('--python-platform', pythonPlatform); |
| 163 | } |
| 164 | args.push('--no-editable'); |
| 165 | await this.runUvCmd(args, projectDir, venvPath); |
| 166 | } |
| 167 | |
| 168 | async lock(options: { |
| 169 | projectDir: string; |
no test coverage detected