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 Django tests.py convention in Python group

thejesh67d2ec302bd7
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 12269ffa..67eb51a1 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
@@ -217,6 +217,11 @@ describe("generateStarterIgnoreFile", () => {
expect(content).toContain("# **/*_test.py");
});
+ it("includes Django's single-file tests.py convention", () => {
+ const content = generateStarterIgnoreFile(testDir);
+ expect(content).toContain("# **/tests.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 82ec9764..cf7261b2 100644
--- a/understand-anything-plugin/packages/core/src/ignore-generator.ts
+++ b/understand-anything-plugin/packages/core/src/ignore-generator.ts
@@ -103,6 +103,7 @@ const TEST_PATTERN_GROUPS: Array<{ label: string; patterns: string[] }> = [
patterns: [
"**/test_*.py",
"**/*_test.py",
+ "**/tests.py",
],
},
];