ci: smooth transition when adding mypy support for old PRs (#28442)

This commit is contained in:
David Arnold 2024-11-12 15:35:03 +01:00 committed by GitHub
parent 3fe8a0d35e
commit 8051652c19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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