Skip to content

Commit 176b1fe

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cd75cf7 commit 176b1fe

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

CLAUDE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,15 @@ docker-compose -f scripts/docker-compose.mongodb.yml down
196196
```
197197

198198
**Available Options:**
199+
199200
- `./scripts/test-mongo-local.sh` - Run MongoDB tests only (default)
200201
- `./scripts/test-mongo-local.sh --mode also-local` - Include memory, pickle, and maxage tests
201202
- `./scripts/test-mongo-local.sh --keep-running` - Keep MongoDB running after tests
202203
- `./scripts/test-mongo-local.sh --verbose` - Show verbose output
203204
- `./scripts/test-mongo-local.sh --coverage-html` - Generate HTML coverage report
204205

205206
**Make Targets:**
207+
206208
- `make test-mongo-local` - Run MongoDB tests with Docker
207209
- `make test-mongo-inmemory` - Run with in-memory MongoDB (default)
208210
- `make mongo-start` - Start MongoDB container

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ clean:
104104
rm -rf .mypy_cache/
105105
rm -rf .ruff_cache/
106106
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
107-
find . -type f -name "*.pyc" -delete
107+
find . -type f -name "*.pyc" -delete

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ This script automatically handles Docker container lifecycle, environment variab
564564
565565
# Start MongoDB with Docker
566566
docker run -d -p 27017:27017 --name cachier-test-mongo mongo:latest
567-
567+
568568
# Run tests
569569
CACHIER_TEST_HOST=localhost CACHIER_TEST_PORT=27017 CACHIER_TEST_VS_DOCKERIZED_MONGO=true pytest -m mongo
570-
570+
571571
# Clean up
572572
docker stop cachier-test-mongo && docker rm cachier-test-mongo
573573

scripts/docker-compose.mongodb.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Docker Compose configuration for local MongoDB testing
22
# This file provides an alternative to the shell script approach
33

4-
version: '3.8'
4+
version: "3.8"
55

66
services:
77
mongodb:
@@ -28,7 +28,6 @@ services:
2828
networks:
2929
cachier-test:
3030
driver: bridge
31-
3231
# Optional: volume for data persistence
3332
# volumes:
3433
# cachier-mongo-data:
@@ -40,4 +39,4 @@ networks:
4039
# 3. Stop MongoDB: docker-compose -f scripts/docker-compose.mongodb.yml down
4140

4241
# Alternative one-liner:
43-
# docker-compose -f scripts/docker-compose.mongodb.yml run --rm -e CACHIER_TEST_HOST=localhost -e CACHIER_TEST_PORT=27017 -e CACHIER_TEST_VS_DOCKERIZED_MONGO=true test
42+
# docker-compose -f scripts/docker-compose.mongodb.yml run --rm -e CACHIER_TEST_HOST=localhost -e CACHIER_TEST_PORT=27017 -e CACHIER_TEST_VS_DOCKERIZED_MONGO=true test

0 commit comments

Comments
 (0)