ci: smooth transition when adding mypy support for old PRs (#28442)
This commit is contained in:
parent
3fe8a0d35e
commit
8051652c19
1 changed files with 1 additions and 1 deletions
2
.github/workflows/type-check-base.yml
vendored
2
.github/workflows/type-check-base.yml
vendored
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
const content = Buffer.from(pyprojectContent.content, 'base64').toString();
|
||||
const toml = require('toml');
|
||||
const parsed = toml.parse(content);
|
||||
const mypyFiles = parsed.tool.mypy.files;
|
||||
const mypyFiles = parsed.tool?.mypy?.files ?? [];
|
||||
return { mypyFiles, content };
|
||||
|
||||
- name: Check for changes in mypy files
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue