mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
chore: translation handling for log messages (#787)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
|
||||
# CodeRabbit Configuration for Kleinanzeigen Bot
|
||||
# Maintains project-specific rules for English code and translation system
|
||||
|
||||
@@ -6,7 +7,8 @@
|
||||
# =============================================================================
|
||||
|
||||
language: "en"
|
||||
tone_instructions: "Be strict about English-only code and translation system usage. Focus on simple, maintainable solutions. Avoid unnecessary complexity and abstractions."
|
||||
tone_instructions: "Be strict about English-only code and translation system usage. Non-code may be in german. Focus on simple, maintainable solutions. Avoid unnecessary complexity and abstractions."
|
||||
enable_free_tier: true
|
||||
|
||||
# =============================================================================
|
||||
# REVIEWS
|
||||
@@ -25,6 +27,7 @@ reviews:
|
||||
related_prs: true
|
||||
suggested_labels: false
|
||||
suggested_reviewers: true
|
||||
in_progress_fortune: false
|
||||
poem: false
|
||||
|
||||
# Path filters to focus on important files
|
||||
@@ -83,7 +86,8 @@ reviews:
|
||||
11. Test business logic separately from web scraping
|
||||
12. Include SPDX license headers on all Python files
|
||||
13. Use type hints for all function parameters and return values
|
||||
14. Use structured logging with context
|
||||
14. Use structured logging with context and appropriate log levels.
|
||||
15. Log message strings should be plain English without `_()` (TranslatingLogger handles translation); wrap non-log user-facing strings with `_()` and add translations
|
||||
- path: "tests/**/*.py"
|
||||
instructions: |
|
||||
TESTING RULES:
|
||||
@@ -143,6 +147,12 @@ reviews:
|
||||
yamllint:
|
||||
enabled: true
|
||||
|
||||
finishing_touches:
|
||||
docstrings:
|
||||
enabled: false
|
||||
unit_tests:
|
||||
enabled: false
|
||||
|
||||
# =============================================================================
|
||||
# KNOWLEDGE BASE
|
||||
# =============================================================================
|
||||
@@ -172,5 +182,3 @@ knowledge_base:
|
||||
scope: "auto"
|
||||
pull_requests:
|
||||
scope: "auto"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user