-
Notifications
You must be signed in to change notification settings - Fork 929
/
Copy pathpoe_tasks.toml
46 lines (45 loc) · 1.12 KB
/
poe_tasks.toml
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
[tasks]
format = "ruff format"
lint = "ruff check"
typecheck = "pytype --config pytype.toml"
check = [
"lint",
"format",
"typecheck",
]
test = "pytest"
codegen = """
datamodel-codegen \
--input ../openapi.yaml \
--input-file-type openapi \
--output integrations/autogen/ \
--output-model-type pydantic_v2.BaseModel \
--strict-types bool \
--strict-nullable \
--allow-population-by-field-name \
--field-include-all-keys \
--reuse-model \
--snake-case-field \
--enum-field-as-literal all \
--field-constraints \
--use-operation-id-as-name \
--use-schema-description \
--use-field-description \
--use-annotated \
--use-default \
--use-unique-items-as-set \
--use-subclass-enum \
--use-union-operator \
--use-one-literal-as-default \
--use-double-quotes \
--use-exact-imports \
--use-standard-collections \
--use-non-positive-negative-number-constrained-types \
--target-python-version 3.12 \
--treat-dot-as-module \
--use-title-as-name \
--collapse-root-models \
--output-datetime-class AwareDatetime \
--openapi-scopes schemas \
--keep-model-order \
--disable-timestamp"""