Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

feat(core): include pytest conftest.py in Python group

thejesh4122c6c1ea71
diff --git a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
index 67eb51a1..0437ecce 100644
--- a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
+++ b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
@@ -222,6 +222,11 @@ describe("generateStarterIgnoreFile", () => {
expect(content).toContain("# **/tests.py");
});
+ it("includes pytest conftest.py convention", () => {
+ const content = generateStarterIgnoreFile(testDir);
+ expect(content).toContain("# **/conftest.py");
+ });
+
it("groups patterns under the JS / TS sub-header", () => {
const content = generateStarterIgnoreFile(testDir);
expect(content).toContain("# JS / TS");
diff --git a/understand-anything-plugin/packages/core/src/ignore-generator.ts b/understand-anything-plugin/packages/core/src/ignore-generator.ts
index cf7261b2..be33ea8f 100644
--- a/understand-anything-plugin/packages/core/src/ignore-generator.ts
+++ b/understand-anything-plugin/packages/core/src/ignore-generator.ts
@@ -104,6 +104,7 @@ const TEST_PATTERN_GROUPS: Array<{ label: string; patterns: string[] }> = [
"**/test_*.py",
"**/*_test.py",
"**/tests.py",
+ "**/conftest.py",
],
},
];