Skip to content

Commit 0f806cb

Browse files
committed
format code
1 parent 0240432 commit 0f806cb

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

.github/testing/src/config.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
import * as fs from 'node:fs';
1616
import * as git from './git';
1717
import * as path from 'path';
18-
import { List, Map, Set } from 'immutable';
19-
import { minimatch } from 'minimatch'; /* eslint-disable @typescript-eslint/no-explicit-any */
20-
import { Affected, TestAll, TestName, TestPath, mergeAffected } from './affected';
18+
import {List, Map, Set} from 'immutable';
19+
import {minimatch} from 'minimatch'; /* eslint-disable @typescript-eslint/no-explicit-any */
20+
import {Affected, TestAll, TestName, TestPath, mergeAffected} from './affected';
2121

2222
type Args = {
2323
root: string;
@@ -58,9 +58,9 @@ export class Config {
5858
this.match = List(match || ['**']);
5959
this.ignore = List(ignore);
6060
this.packageFile = List(packageFile);
61-
this._lint = lint || (_ => { });
62-
this._testAll = testAll || (_ => { });
63-
this._testSome = testSome || (_ => { });
61+
this._lint = lint || (_ => {});
62+
this._testAll = testAll || (_ => {});
63+
this._testSome = testSome || (_ => {});
6464
}
6565

6666
affected = (head: string, main: string): List<Affected> =>
@@ -81,7 +81,7 @@ export class Config {
8181
const dir = path.join(root, affected.path);
8282
console.log(`> cd ${dir}`);
8383
process.chdir(dir);
84-
this._lint({ root: root, path: affected.path });
84+
this._lint({root: root, path: affected.path});
8585
process.chdir(cwd);
8686
};
8787

@@ -92,7 +92,7 @@ export class Config {
9292
console.log(`> cd ${dir}`);
9393
process.chdir(dir);
9494
if ('TestAll' in affected) {
95-
this._testAll({ root: root, path: affected.path });
95+
this._testAll({root: root, path: affected.path});
9696
}
9797
if ('TestSome' in affected) {
9898
this._testSome({

.github/testing/src/config/python.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import * as path from 'path';
1616
import * as subprocess from '../subprocess';
17-
import { Config } from '../config';
17+
import {Config} from '../config';
1818

1919
export const python = (version = '3.11') =>
2020
new Config({
@@ -38,10 +38,8 @@ export const python = (version = '3.11') =>
3838
subprocess.run('nox', ['-s', `py-${version}`]);
3939
},
4040
testSome: args => {
41-
subprocess.run('cp', [
42-
path.join(args.root, 'noxfile-template.py'),
43-
'noxfile.py',
44-
]);
41+
const noxfile = path.join(args.root, 'noxfile-template.py');
42+
subprocess.run('cp', [noxfile, 'noxfile.py']);
4543
throw `TODO: config/python.ts testSome ${JSON.stringify(args)}`;
4644
},
4745
});

.github/testing/src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
// limitations under the License.
1414

1515
import * as git from './git';
16-
import { Config } from './config';
17-
import { python } from './config/python';
18-
import { Affected } from './affected';
16+
import {Config} from './config';
17+
import {python} from './config/python';
18+
import {Affected} from './affected';
1919

2020
function getConfig(lang: string): Config {
2121
switch (lang) {

0 commit comments

Comments
 (0)