MCPcopy Index your code
hub / github.com/deepnote/deepnote / isYamlPath

Function isYamlPath

packages/cli/src/commands/lint.ts:43–46  ·  view source on GitHub ↗

* Returns true if the given path points to a YAML file (integrations env file).

(filePath: string)

Source from the content-addressed store, hash-verified

41 * Returns true if the given path points to a YAML file (integrations env file).
42 */
43function isYamlPath(filePath: string): boolean {
44 const ext = extname(filePath).toLowerCase()
45 return ext === '.yaml' || ext === '.yml'
46}
47
48/**
49 * Run `fn` with a snapshot of `process.env` taken beforehand, restoring the original environment

Callers 1

createLintActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected