Skip to content

Commit 2da322a

Browse files
chore: Add CodeRabbit config file
1 parent 51ad52b commit 2da322a

2 files changed

Lines changed: 97 additions & 0 deletions

File tree

‎.coderabbit.yaml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
language: en-US
3+
4+
reviews:
5+
profile: "chill"
6+
auto_review:
7+
enabled: true
8+
drafts: false
9+
ignore_usernames:
10+
- "dependabot[bot]"
11+
12+
path_filters:
13+
- "!uv.lock"
14+
- "!*.egg-info/**"
15+
16+
instructions: |
17+
- camayoc is a functional/integration test framework for Quipucords.
18+
- All public modules, classes, and functions must have docstrings.
19+
- Use pathlib over os.path.
20+
- Max cyclomatic complexity is 10. Flag functions that look overly complex.
21+
- Tests use pytest; prefer standalone test functions over test classes.
22+
23+
path_instructions:
24+
- path: "camayoc/tests/**"
25+
instructions: |
26+
- Functional/integration tests against a live
27+
Quipucords server.
28+
- Tests should not depend on execution order.
29+
- Assertions should target specific records, not assume ordering.
30+
- Flag tests that use sleep or hardcoded waits.
31+
- Prefer standalone test functions over test classes.
32+
- Naming convention: test_<function>_<scenario>.
33+
- path: "camayoc/ui/**"
34+
instructions: |
35+
- Page object models for Playwright-based UI tests.
36+
- Check for proper use of Playwright locators and selectors.
37+
- Use Playwright's built-in auto-waiting,
38+
not explicit sleeps.
39+
- path: "camayoc/api.py"
40+
instructions: |
41+
- API client utilities for interacting
42+
with Quipucords.
43+
- Ensure proper error handling for HTTP responses.
44+
- Check that credentials and secrets are not logged or exposed.
45+
- path: "tests/**"
46+
instructions: |
47+
- These are unit tests for camayoc itself (the library).
48+
- Tests should not depend on execution order.
49+
- Prefer standalone test functions over test classes.

‎camayoc/.coderabbit.yaml‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
language: en-US
2+
3+
reviews:
4+
profile: "chill"
5+
auto_review:
6+
enabled: true
7+
drafts: false
8+
ignore_usernames:
9+
- "dependabot[bot]"
10+
11+
path_filters:
12+
- "!uv.lock"
13+
- "!*.egg-info/**"
14+
15+
instructions: |
16+
- camayoc is a functional/integration test framework for Quipucords.
17+
- All public modules, classes, and functions must have docstrings.
18+
- Use pathlib over os.path.
19+
- Max cyclomatic complexity is 10. Flag functions that look overly complex.
20+
- Tests use pytest; prefer standalone test functions over test classes.
21+
22+
path_instructions:
23+
- path: "camayoc/tests/**"
24+
instructions: |
25+
- Functional/integration tests against a live
26+
Quipucords server.
27+
- Tests should not depend on execution order.
28+
- Assertions should target specific records, not assume ordering.
29+
- Flag tests that use sleep or hardcoded waits.
30+
- Prefer standalone test functions over test classes.
31+
- Naming convention: test_<function>_<scenario>.
32+
- path: "camayoc/ui/**"
33+
instructions: |
34+
- Page object models for Playwright-based UI tests.
35+
- Check for proper use of Playwright locators and selectors.
36+
- Use Playwright's built-in auto-waiting,
37+
not explicit sleeps.
38+
- path: "camayoc/api.py"
39+
instructions: |
40+
- API client utilities for interacting
41+
with Quipucords.
42+
- Ensure proper error handling for HTTP responses.
43+
- Check that credentials and secrets are not logged or exposed.
44+
- path: "tests/**"
45+
instructions: |
46+
- These are unit tests for camayoc itself (the library).
47+
- Tests should not depend on execution order.
48+
- Prefer standalone test functions over test classes.

0 commit comments

Comments
 (0)