Commit 7f246a3
Remove dead code and fix linting issues (#2)
* Add CodeRabbit AI integration configuration
- Add .coderabbit.yaml with security-focused configuration
- Configure path-specific instructions for different code areas
- Add auto-approval for small, safe changes
- Include ContextForge Memory-specific review prompts
- Add comprehensive setup guide for CodeRabbit AI
- Optimize for security, performance, and code quality reviews
* Fix all CodeRabbit AI reported issues
Security fixes:
- Fix pip version constraint from >=25.0 to >=25.2 (GHSA-4xh5-x5gv-qwph)
- Add explicit starlette==0.48.0 to requirements.txt
- Pin fastapi to exact version 0.119.0 for reproducibility
CI workflow improvements:
- Remove duplicate dependency installation (safety/pip-audit now in requirements.txt)
- Remove ad-hoc dependency upgrades from CI
- Replace deprecated 'safety check' with 'safety scan'
- Use continue-on-error instead of shell || true for cleaner JSON output
Performance optimizations:
- Remove unused _score computation in search function
- Fix redundant query embedding computation in sort key
- Reuse precomputed query_vec instead of recomputing for each item
Code quality:
- Add safety-results.json and audit-results.json to .gitignore
- Remove committed safety-results.json artifact file
- Ensure all dependencies are properly pinned for reproducibility
All CodeRabbit AI suggestions have been implemented.
* Remove CodeRabbit configuration from repository
- Remove .coderabbit.yaml (system-specific configuration)
- Remove CODERABBIT_SETUP.md (setup documentation)
- Keep CodeRabbit AI integration but use default settings
- Configuration should be managed at user/organization level, not in repo
* Remove dead score function and fix linting issues
- Remove unused score function from main.py (dead code)
- Fix flake8 line length issues in Python client
- Fix markdownlint issues across all markdown files:
- Break long lines to comply with 80-character limit
- Add proper spacing around headings and lists
- Fix code block spacing issues
- All linting tools now pass without errors
* Fix CodeRabbit configuration schema
- Move tone from review.tone to top-level tone_instructions
- Move path_instructions under reviews section
- Replace ignore.paths with reviews.path_filters using ! prefix
- Remove unsupported custom sections (behavior, security, performance, integrations, custom_prompts)
- Restructure to match official CodeRabbit schema requirements
- Preserve all review guidance content in properly formatted structure
* refactor: merge redundant path entries in .coderabbit.yaml
- Combine identical instructions for *.md and docs/**/* into single entry
- Use **/*.md pattern to cover all markdown files
- Remove duplication while preserving all review instructions
* docs(coderabbit): add optional external tools note and IaC review paths
- Recommend enabling gitleaks, semgrep, checkov in CodeRabbit UI
- Add IaC/container/K8s review instructions under path_instructions
- Keep path fields as strings to satisfy linter
* Consolidate duplicate IaC/container path instructions in .coderabbit.yaml
- Replace 8 identical path instruction blocks with single canonical rule
- Use brace-expanded glob to cover all original patterns:
- **/*.tf, **/Dockerfile, **/Dockerfile.*
- **/docker-compose.yml, **/docker-compose.*.yml
- helm/**/*, k8s/**/*, kubernetes/**/*
- Preserve original instruction text for Infrastructure-as-Code security
---------
Co-authored-by: Ben De Cock <[email protected]>1 parent c85c74e commit 7f246a3
File tree
11 files changed
+269
-1520
lines changed- .github/workflows
- clients/python
- src/contextforge_memory
11 files changed
+269
-1520
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | 28 | | |
34 | 29 | | |
| 30 | + | |
| 31 | + | |
35 | 32 | | |
36 | | - | |
37 | | - | |
| 33 | + | |
| 34 | + | |
38 | 35 | | |
39 | 36 | | |
40 | 37 | | |
| |||
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | | - | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
11 | | - | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
| |||
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | | - | |
| 28 | + | |
| 29 | + | |
22 | 30 | | |
23 | 31 | | |
24 | | - | |
25 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
29 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
30 | 43 | | |
31 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
32 | 48 | | |
33 | 49 | | |
34 | 50 | | |
35 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
36 | 56 | | |
37 | 57 | | |
38 | 58 | | |
39 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
40 | 63 | | |
41 | | - | |
| 64 | + | |
| 65 | + | |
42 | 66 | | |
43 | 67 | | |
44 | 68 | | |
45 | | - | |
| 69 | + | |
| 70 | + | |
46 | 71 | | |
47 | 72 | | |
48 | | - | |
49 | 73 | | |
50 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
51 | 80 | | |
52 | 81 | | |
| 82 | + | |
53 | 83 | | |
54 | 84 | | |
55 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
56 | 91 | | |
57 | 92 | | |
58 | | - | |
59 | 93 | | |
60 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
61 | 102 | | |
62 | 103 | | |
63 | | - | |
64 | 104 | | |
65 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
66 | 111 | | |
67 | 112 | | |
68 | 113 | | |
69 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
70 | 117 | | |
71 | | - | |
| 118 | + | |
| 119 | + | |
72 | 120 | | |
73 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
74 | 124 | | |
75 | 125 | | |
76 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | 55 | | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| |||
177 | 184 | | |
178 | 185 | | |
179 | 186 | | |
180 | | - | |
| 187 | + | |
| 188 | + | |
0 commit comments