-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
57 lines (49 loc) · 1.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
test:
set -a && source .env && set +a; pytest --record-mode=none tests/
fmt:
ruff format .
ci:
pytest --cov=neon_client --record-mode=none tests/
record:
pytest --record-mode=rewrite tests/
schema: fetch-v2-schema
datamodel-codegen \
--input v2.json \
--collapse-root-models \
--output neon_client/schema.py \
--additional-imports datetime.datetime,pydantic.dataclasses.dataclass \
--use-standard-collections \
--output-model-type dataclasses.dataclass \
# --input-file-type openapi \
--use-standard-collections \
--use-union-operator \
--target-python-version 3.11 \
--use-schema-description \
--snake-case-field \
--enable-version-header \
--use-double-quotes \
--allow-population-by-field-name \
--use-title-as-name \
--reuse-model \
--collapse-root-models \
# --field-constraints \
--disable-appending-item-suffix \
--allow-extra-fields \
--capitalise-enum-members \
--allow-extra-fields \
--use-field-description \
--use-default \
--use-enum-values \
--reuse-model \
--use-unique-items-as-set \
--set-default-enum-member \
--enum-field-as-literal one \
--allow-extra-fields \
--openapi-scopes {schemas,paths,tags,parameters} \
--use-operation-id-as-name \
--strict-nullable \
--keep-model-order \
--field-constraints \
# --use-annotated \
fetch-v2-schema:
curl -O https://neon.tech/api_spec/release/v2.json