|
| 1 | +# yaml-language-server: $schema=https://www.coderabbit.ai/integrations/schema.v2.json |
| 2 | +language: "en-US" |
| 3 | +tone_instructions: "Be direct and specific. Prefer concise, actionable feedback. Skip style notes already handled by ruff or pyright." |
| 4 | +early_access: false |
| 5 | + |
| 6 | +reviews: |
| 7 | + profile: "assertive" |
| 8 | + # Set request_changes_workflow: true once the team is comfortable with assertive reviews |
| 9 | + request_changes_workflow: false |
| 10 | + high_level_summary: true |
| 11 | + high_level_summary_in_walkthrough: false |
| 12 | + commit_status: true |
| 13 | + fail_commit_status: false |
| 14 | + collapse_walkthrough: true |
| 15 | + changed_files_summary: true |
| 16 | + sequence_diagrams: true |
| 17 | + estimate_code_review_effort: true |
| 18 | + assess_linked_issues: true |
| 19 | + related_issues: true |
| 20 | + related_prs: true |
| 21 | + suggested_labels: true |
| 22 | + auto_apply_labels: false |
| 23 | + suggested_reviewers: true |
| 24 | + poem: false |
| 25 | + slop_detection: |
| 26 | + enabled: true |
| 27 | + label: "ai-slop" |
| 28 | + |
| 29 | + auto_review: |
| 30 | + enabled: true |
| 31 | + auto_incremental_review: true |
| 32 | + drafts: false |
| 33 | + base_branches: |
| 34 | + - "main" |
| 35 | + ignore_title_keywords: |
| 36 | + - "WIP" |
| 37 | + - "DO NOT MERGE" |
| 38 | + |
| 39 | + path_filters: |
| 40 | + - "!dist/**" |
| 41 | + - "!build/**" |
| 42 | + - "!graphify-out/**" |
| 43 | + - "!**/*.pyc" |
| 44 | + - "!**/__pycache__/**" |
| 45 | + |
| 46 | + path_instructions: |
| 47 | + - path: "src/pythinker_code/telemetry/**" |
| 48 | + instructions: | |
| 49 | + Flag any changes that could inadvertently capture PII, secrets, or sensitive user data. |
| 50 | + Verify that all telemetry events respect the PYTHINKER_DISABLE_TELEMETRY opt-out path. |
| 51 | + - path: "src/**/*.py" |
| 52 | + instructions: | |
| 53 | + Flag missing type annotations on public functions and methods. |
| 54 | + Flag use of eval, exec, subprocess with shell=True, or os.system. |
| 55 | + Flag exception handlers that silently swallow errors without logging or re-raising. |
| 56 | + - path: "tests/**/*.py" |
| 57 | + instructions: | |
| 58 | + Flag tests that mock internal implementation details rather than observable behavior. |
| 59 | + Flag tests missing assertions, or with trivially-true assertions. |
| 60 | + - path: ".github/workflows/**" |
| 61 | + instructions: | |
| 62 | + Flag third-party actions that are not pinned to a full commit SHA. |
| 63 | + Flag pull_request_target triggers without explicit permission restrictions. |
| 64 | + Flag hardcoded secrets, tokens, or sensitive values. |
| 65 | + - path: "pyproject.toml" |
| 66 | + instructions: | |
| 67 | + Flag any new entries under [project].dependencies — new runtime dependencies require explicit justification per the zero-new-bundled-deps policy. |
| 68 | + Flag version pins that downgrade or remove security constraints. |
| 69 | +
|
| 70 | + finishing_touches: |
| 71 | + docstrings: |
| 72 | + enabled: true |
| 73 | + unit_tests: |
| 74 | + enabled: true |
| 75 | + simplify: |
| 76 | + enabled: false |
| 77 | + |
| 78 | + # Pre-merge checks — all in warning mode to gather signal before tightening. |
| 79 | + # Promote individual checks to mode: "error" + request_changes_workflow: true |
| 80 | + # once the team has calibrated expectations. |
| 81 | + pre_merge_checks: |
| 82 | + title: |
| 83 | + mode: "warning" |
| 84 | + requirements: "Follow conventional commits: type(scope): description. Valid types: feat, fix, chore, docs, refactor, test, ci, perf." |
| 85 | + description: |
| 86 | + mode: "warning" |
| 87 | + issue_assessment: |
| 88 | + mode: "warning" |
| 89 | + docstrings: |
| 90 | + mode: "warning" |
| 91 | + threshold: 70 |
| 92 | + |
| 93 | + tools: |
| 94 | + # Python — ruff covers pycodestyle, flake8-bugbear, isort, etc. |
| 95 | + # Disable flake8/pylint to eliminate duplicate noise. |
| 96 | + ruff: |
| 97 | + enabled: true |
| 98 | + flake8: |
| 99 | + enabled: false |
| 100 | + pylint: |
| 101 | + enabled: false |
| 102 | + # Security |
| 103 | + semgrep: |
| 104 | + enabled: true |
| 105 | + trufflehog: |
| 106 | + enabled: true |
| 107 | + gitleaks: |
| 108 | + enabled: true |
| 109 | + trivy: |
| 110 | + enabled: true |
| 111 | + osvScanner: |
| 112 | + enabled: true |
| 113 | + zizmor: |
| 114 | + enabled: true |
| 115 | + # Infrastructure / CI |
| 116 | + actionlint: |
| 117 | + enabled: true |
| 118 | + hadolint: |
| 119 | + enabled: true |
| 120 | + shellcheck: |
| 121 | + enabled: true |
| 122 | + yamllint: |
| 123 | + enabled: true |
| 124 | + # Docs |
| 125 | + markdownlint: |
| 126 | + enabled: true |
| 127 | + # Language tool adds noise in code-heavy repos; leave off by default |
| 128 | + languagetool: |
| 129 | + enabled: false |
| 130 | + |
| 131 | +chat: |
| 132 | + auto_reply: true |
| 133 | + |
| 134 | +knowledge_base: |
| 135 | + opt_out: false |
| 136 | + web_search: |
| 137 | + enabled: true |
| 138 | + learnings: |
| 139 | + scope: "local" |
| 140 | + issues: |
| 141 | + scope: "local" |
| 142 | + pull_requests: |
| 143 | + scope: "local" |
| 144 | + |
| 145 | +code_generation: |
| 146 | + docstrings: |
| 147 | + language: "en-US" |
| 148 | + unit_tests: |
| 149 | + path_instructions: |
| 150 | + - path: "src/**/*.py" |
| 151 | + instructions: "Use pytest. Follow patterns in tests/. Mock external HTTP calls. Avoid patching internals." |
0 commit comments