Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit d4e168c

Browse files
committed
style: apply prettier to existing files
These un-linted changes have crept in due to lack of CI making it here. Signed-off-by: Mike Fiedler <[email protected]>
1 parent e8ded7c commit d4e168c

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

lib/pip.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -119,20 +119,18 @@ function installRequirements(targetFolder, serverless, options) {
119119
);
120120

121121
const dockerCmd = [];
122-
const pipCmd = [
123-
options.pythonBin,
124-
'-m',
125-
'pip',
126-
'install'
127-
];
128-
129-
if (Array.isArray(options.pipCmdExtraArgs) && options.pipCmdExtraArgs.length > 0) {
122+
const pipCmd = [options.pythonBin, '-m', 'pip', 'install'];
123+
124+
if (
125+
Array.isArray(options.pipCmdExtraArgs) &&
126+
options.pipCmdExtraArgs.length > 0
127+
) {
130128
options.pipCmdExtraArgs.forEach(cmd => {
131129
const parts = cmd.split(/\s+/, 2);
132130
pipCmd.push(...parts);
133131
});
134132
}
135-
133+
136134
const pipCmds = [pipCmd];
137135
const postCmds = [];
138136
// Check if we're using the legacy --cache-dir command...

lib/poetry.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ function pyprojectTomlToRequirements() {
1616

1717
const res = spawnSync(
1818
'poetry',
19-
['export', '--without-hashes', '-f', 'requirements.txt', '-o', 'requirements.txt'],
19+
[
20+
'export',
21+
'--without-hashes',
22+
'-f',
23+
'requirements.txt',
24+
'-o',
25+
'requirements.txt'
26+
],
2027
{
2128
cwd: this.servicePath
2229
}

0 commit comments

Comments
 (0)