@@ -42,7 +42,7 @@ export function validatePyprojectToml(toml: tomljs.JsonMap): string | undefined
4242 }
4343 }
4444
45- // 3. Validate required fields (PEP 621)
45+ // 3. Validate required "name" field in [project] section (PEP 621)
4646 if ( toml . project ) {
4747 const project = toml . project as tomljs . JsonMap ;
4848 // See PEP 621: https://peps.python.org/pep-0621/
@@ -51,7 +51,7 @@ export function validatePyprojectToml(toml: tomljs.JsonMap): string | undefined
5151 }
5252 }
5353
54- // 4. Validate build system (PEP 518)
54+ // 4. Validate required "requires" field in [build- system] section (PEP 518)
5555 if ( toml [ 'build-system' ] ) {
5656 const buildSystem = toml [ 'build-system' ] as tomljs . JsonMap ;
5757 // See PEP 518: https://peps.python.org/pep-0518/
@@ -214,7 +214,7 @@ export interface PipPackages {
214214
215215export interface ProjectInstallableResult {
216216 /**
217- * List of installable packages from requirements.txt and pyproject.toml files
217+ * List of installable packages from pyproject.toml file
218218 */
219219 installables : Installable [ ] ;
220220
@@ -295,7 +295,7 @@ export async function getProjectInstallable(
295295 if ( uri . fsPath . endsWith ( '.toml' ) ) {
296296 const toml = await tomlParse ( uri . fsPath ) ;
297297
298- // Validate pyproject.toml and capture first error only
298+ // Validate pyproject.toml
299299 if ( ! validationError ) {
300300 const error = validatePyprojectToml ( toml ) ;
301301 if ( error ) {
0 commit comments