Skip to content

Commit d4c5bea

Browse files
committed
Coverage and Rabbit updates
1 parent 383f8f8 commit d4c5bea

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.coderabbit.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ reviews:
44
- path: "newsfragments/*.rst"
55
instructions: |
66
Validate newsfragment files:
7-
1. Read valid types from [tool.towncrier.fragment] in pyproject.toml
8-
2. Filename must follow the pattern: [number].[type].rst OR +[hash].[type].rst where:
9-
- [number] is an issue number or PR number
10-
- [type] must be one of the types defined in towncrier configuration
11-
3. Content must be a clear, concise description of the change
12-
4. Content should be suitable for inclusion in CHANGES.rst
13-
5. Verify the type matches the nature of the change based on towncrier type definitions
14-
6. Some changes may require multiple types. Especially breaking changes
15-
7. Flag any files with invalid types or malformed filenames
16-
8. Check that the description is meaningful (not just "fix" or "update")
7+
1. Read valid types from [tool.towncrier.type] in pyproject.toml.
8+
2. Filename must follow one of these patterns:
9+
- `[issue_number].[type].rst` — use this when a dedicated **issue** exists in the issue tracker.
10+
- `+[hash].[type].rst` — use this (orphan format) when there is NO dedicated issue. A PR alone (without a backing issue) does NOT require the numbered format; orphan is acceptable.
11+
Do NOT flag orphan fragments as incorrect when only a PR exists but no issue does.
12+
3. Content must be a clear, concise description of the change (not just "fix" or "update").
13+
4. Content should be suitable for inclusion in CHANGES.rst.
14+
5. Verify the type matches the nature of the change based on towncrier type definitions.
15+
6. Some changes may require multiple types, especially breaking changes.
1716
1817
pre_merge_checks:
1918
custom_checks:

.coveragerc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
[run]
2-
source = pytest_postgresql
2+
include =
3+
*/pytest_postgresql/*
4+
*/tests/*

0 commit comments

Comments
 (0)