Skip to content

Commit a42384f

Browse files
Run "init" after "new" command (#802)
1 parent 9249d39 commit a42384f

File tree

48 files changed

+151
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+151
-78
lines changed

requirements.dev.txt

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ aiosignal==1.3.1
77
aiosqlite==0.17.0
88
alabaster==0.7.13
99
anyio==3.7.1
10-
APScheduler==3.10.3
10+
APScheduler==3.10.4
1111
argcomplete==3.1.1
1212
async-lru==2.0.4
13-
async-timeout==4.0.2
13+
async-timeout==4.0.3
1414
asyncclick==8.1.3.4
1515
asyncpg==0.28.0
1616
attrs==23.1.0
1717
babel==2.12.1
18-
bitarray==2.8.0
18+
bitarray==2.8.1
1919
black==23.7.0
2020
certifi==2023.7.22
2121
chardet==5.2.0
2222
charset-normalizer==3.2.0
23-
click==8.1.6
24-
coverage==7.2.7
23+
click==8.1.7
24+
coverage==7.3.0
2525
cytoolz==0.12.2
2626
datamodel-code-generator==0.21.4
27-
dnspython==2.4.1
27+
dnspython==2.4.2
2828
docker==6.1.3
2929
docutils==0.20.1
3030
email-validator==2.0.0.post2
@@ -58,7 +58,7 @@ mypy==1.5.1
5858
mypy-extensions==1.0.0
5959
numpy==1.25.2
6060
openapi-schema-validator==0.4.4
61-
openapi-spec-validator==0.5.2
61+
openapi-spec-validator==0.5.7
6262
orjson==3.9.5
6363
packaging==23.1
6464
parsimonious==0.9.0
@@ -69,11 +69,11 @@ pluggy==1.2.0
6969
pprofile==2.1.0
7070
prance==23.6.21.0
7171
prometheus-client==0.17.1
72-
protobuf==4.23.4
72+
protobuf==4.24.1
7373
pyarrow==12.0.1
7474
pycryptodome==3.18.0
7575
pydantic==1.10.12
76-
Pygments==2.15.1
76+
Pygments==2.16.1
7777
pyhumps==3.8.0
7878
pypika-tortoise==0.1.6
7979
pyrsistent==0.19.3
@@ -88,26 +88,27 @@ python-dotenv==1.0.0
8888
pytz==2023.3
8989
pyunormalize==15.0.0
9090
PyYAML==6.0.1
91-
regex==2023.6.3
91+
regex==2023.8.8
9292
requests==2.31.0
9393
rfc3339-validator==0.1.4
9494
rlp==3.0.0
9595
ruamel-yaml==0.17.32
9696
ruamel-yaml-clib==0.2.7
9797
ruff==0.0.285
9898
sentry-sdk==1.29.2
99+
setuptools==68.1.2
99100
six==1.16.0
100101
sniffio==1.3.0
101102
snowballstemmer==2.2.0
102103
sphinx==7.2.2
103104
sphinx-click==5.0.1
104105
sphinx-markdown-builder==0.6.5
105-
sphinxcontrib-applehelp==1.0.4
106-
sphinxcontrib-devhelp==1.0.2
107-
sphinxcontrib-htmlhelp==2.0.1
106+
sphinxcontrib-applehelp==1.0.7
107+
sphinxcontrib-devhelp==1.0.5
108+
sphinxcontrib-htmlhelp==2.0.4
108109
sphinxcontrib-jsmath==1.0.1
109-
sphinxcontrib-qthelp==1.0.3
110-
sphinxcontrib-serializinghtml==1.1.5
110+
sphinxcontrib-qthelp==1.0.6
111+
sphinxcontrib-serializinghtml==1.1.8
111112
sqlparse==0.4.4
112113
survey==4.5.4
113114
tabulate==0.9.0

requirements.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ aiolimiter==1.1.0
66
aiosignal==1.3.1
77
aiosqlite==0.17.0
88
anyio==3.7.1
9-
APScheduler==3.10.3
9+
APScheduler==3.10.4
1010
argcomplete==3.1.1
1111
async-lru==2.0.4
12-
async-timeout==4.0.2
12+
async-timeout==4.0.3
1313
asyncclick==8.1.3.4
1414
asyncpg==0.28.0
1515
attrs==23.1.0
16-
bitarray==2.8.0
16+
bitarray==2.8.1
1717
black==23.7.0
1818
certifi==2023.7.22
1919
chardet==5.2.0
2020
charset-normalizer==3.2.0
21-
click==8.1.6
21+
click==8.1.7
2222
cytoolz==0.12.2
2323
datamodel-code-generator==0.21.4
24-
dnspython==2.4.1
24+
dnspython==2.4.2
2525
email-validator==2.0.0.post2
2626
eth-abi==4.1.0
2727
eth-account==0.9.0
@@ -49,7 +49,7 @@ multidict==6.0.4
4949
mypy-extensions==1.0.0
5050
numpy==1.25.2
5151
openapi-schema-validator==0.4.4
52-
openapi-spec-validator==0.5.2
52+
openapi-spec-validator==0.5.7
5353
orjson==3.9.5
5454
packaging==23.1
5555
parsimonious==0.9.0
@@ -58,7 +58,7 @@ pathspec==0.11.2
5858
platformdirs==3.10.0
5959
prance==23.6.21.0
6060
prometheus-client==0.17.1
61-
protobuf==4.23.4
61+
protobuf==4.24.1
6262
pyarrow==12.0.1
6363
pycryptodome==3.18.0
6464
pydantic==1.10.12
@@ -71,13 +71,14 @@ python-dotenv==1.0.0
7171
pytz==2023.3
7272
pyunormalize==15.0.0
7373
PyYAML==6.0.1
74-
regex==2023.6.3
74+
regex==2023.8.8
7575
requests==2.31.0
7676
rfc3339-validator==0.1.4
7777
rlp==3.0.0
7878
ruamel-yaml==0.17.32
7979
ruamel-yaml-clib==0.2.7
8080
sentry-sdk==1.29.2
81+
setuptools==68.1.2
8182
six==1.16.0
8283
sniffio==1.3.0
8384
sqlparse==0.4.4

scripts/docs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from watchdog.observers import Observer
2424
from watchdog.observers.api import BaseObserver
2525

26-
from dipdup.project import DEFAULT_ANSWERS
26+
from dipdup.project import get_default_answers
2727

2828
logging.basicConfig(level=logging.INFO, format='%(levelname)-8s %(message)s')
2929
_logger = logging.getLogger()
@@ -106,10 +106,12 @@ def replacer(match: re.Match[str]) -> str:
106106

107107

108108
def create_project_callback() -> Callable[[str], str]:
109+
answers = get_default_answers()
110+
109111
def callback(data: str) -> str:
110112
for match in re.finditer(PROJECT_REGEX, data):
111113
key = match.group(1)
112-
value = DEFAULT_ANSWERS[key] # type: ignore[literal-required]
114+
value = answers[key] # type: ignore[literal-required]
113115
data = data.replace(match.group(0), str(value))
114116
return data
115117

src/demo_auction/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!demo_auction
77
!.gitignore
88
!.dockerignore
9+
!py.typed
910
!**/Dockerfile
1011
!**/Makefile
1112
!**/pyproject.toml

src/demo_auction/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from enum import IntEnum
22

3+
34
from dipdup import fields
45
from dipdup.models import Model
56

src/demo_auction/py.typed

Whitespace-only changes.

src/demo_big_maps/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!demo_big_maps
77
!.gitignore
88
!.dockerignore
9+
!py.typed
910
!**/Dockerfile
1011
!**/Makefile
1112
!**/pyproject.toml

src/demo_big_maps/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
from dipdup import fields
3+
34
from dipdup.models import Model
45

56

src/demo_big_maps/py.typed

Whitespace-only changes.

src/demo_blank/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
!demo_blank
77
!.gitignore
88
!.dockerignore
9+
!py.typed
910
!**/Dockerfile
1011
!**/Makefile
1112
!**/pyproject.toml

0 commit comments

Comments
 (0)