You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the shift in the ecosystem to Pydantic 2.x.x, we need to get
`redisvl` to the same level.
Referenced here: https://github.com/RedisVentures/redisvl/issues/86
Fortunately, there is not a ton of complex usage of Pydantic; which
makes this easy! Changes include:
- Shifting the storage classes to use Pydantic to avoid manual (and
ugly) field validation. Now, the subclasses inherit from the base and
params are all typed as expected.
- Shifting the vectorizer classes to use Pydantic for the same reasons.
- Bump and pin pydantic version in the packge requirements to a
reasonable range `pydantic>=2.0.0,<3`
- use `v1` shim for now for safety
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,38 @@ Here's how to get started with your code contribution:
30
30
### Dev Environment
31
31
There is a provided `requirements.txt` and `requirements-dev.txt` file you can use to install required libraries with `pip` into your virtual environment.
32
32
33
+
Or use the local package editable install method:
34
+
```bash
35
+
python -m venv .venv
36
+
source .venv/bin/activate
37
+
pip install -e .[all,dev]
38
+
```
39
+
40
+
Then to deactivate the env:
41
+
```
42
+
source deactivate
43
+
```
44
+
45
+
### Linting and Tests
46
+
47
+
Check formatting, linting, and typing:
48
+
```bash
49
+
make check
50
+
```
51
+
52
+
Tests (with vectorizers):
53
+
```bash
54
+
make test-cov
55
+
```
56
+
57
+
Tests w/out vectorizers:
58
+
```bash
59
+
SKIP_VECTORIZERS=true make test-cov
60
+
```
61
+
62
+
> Dev requirements are needed here to be able to run tests and linting.
63
+
> See other commands in the [Makefile](Makefile)
64
+
33
65
### Docker Tips
34
66
35
67
Make sure to have [Redis](https://redis.io) accessible with Search & Query features enabled on [Redis Cloud](https://redis.com/try-free) or locally in docker with [Redis Stack](https://redis.io/docs/getting-started/install-stack/docker/):
@@ -38,7 +70,7 @@ Make sure to have [Redis](https://redis.io) accessible with Search & Query featu
38
70
docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
39
71
```
40
72
41
-
This will also spin up the [Redis Insight GUI](https://redis.com/redis-enterprise/redis-insight/) at `http://localhost:8001`.
73
+
This will also spin up the [FREE RedisInsight GUI](https://redis.com/redis-enterprise/redis-insight/) at `http://localhost:8001`.
0 commit comments