Skip to content

Commit 865b85c

Browse files
improve: README usage/troubleshooting and CI pip cache (#38)
* docs: add AGENTS.md for agent discoverability * fix: eliminate B008 noqa hacks with module-level defaults; handle None flattening * improve: README usage/troubleshooting add pip cache to CI
1 parent 0b3304d commit 865b85c

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ jobs:
2525
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
28+
cache: "pip"
2829

2930
- name: Install dependencies
3031
run: |
32+
pip config set global.retries 5 || true
3133
pip install -e ".[dev]"
3234
3335
- name: Lint with ruff

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,22 @@ Use `--output silent` for CI gating:
9292
configdrift check dev.yaml prod.yaml --output silent || echo "Drift detected!"
9393
```
9494

95+
### GitHub Actions example
96+
97+
```yaml
98+
- name: Detect config drift
99+
run: |
100+
pip install configdrift
101+
configdrift check ./config/staging/app.yaml ./config/prod/app.yaml --output silent
102+
```
103+
104+
## Troubleshooting
105+
106+
- **Exit code 1 with no output**: use `--output table` to inspect drift details.
107+
- **TOML parsing errors on Python < 3.11**: install `tomli` and `tomli-w` or use Python 3.11+.
108+
- **Large config scans are slow**: narrow the scan to changed files or a single directory.
109+
- **Unexpected breaking drift**: review severity rules in the project settings; `database*` and `auth*` keys are flagged as breaking by default.
110+
95111
## Supported Formats
96112

97113
| Format | Extension | Notes |

0 commit comments

Comments
 (0)