Skip to content

Commit

Permalink
revert pdm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout committed Nov 14, 2023
1 parent aa7636c commit a9d7d13
Show file tree
Hide file tree
Showing 52 changed files with 264 additions and 75 deletions.
2 changes: 1 addition & 1 deletion docs/0.quickstart-evm.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ And that's all! We can run the indexer now.

## Next steps

Run the indexer in-memory:
Run the indexer in memory:

```bash
dipdup run
Expand Down
4 changes: 1 addition & 3 deletions src/demo_auction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_auction/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_big_maps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_big_maps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to perform an entire CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_big_maps/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_blank/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_blank/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_blank/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_dao/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_dao/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_dao/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_dex/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_dex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_dex/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_domains/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_domains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_domains/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_events/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_events/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_events/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_evm_events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_evm_events/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_factories/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_factories/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_factories/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_head/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
4 changes: 1 addition & 3 deletions src/demo_head/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,4 @@ pdm install
$(pdm venv activate)
```

This project uses several tools to keep the code quality high: isort, black, ruff and mypy.

Run `make all` to perform full CI check or `make help` to see other available commands.
Run `make all` to run full CI check or `make help` to see other available commands.
13 changes: 13 additions & 0 deletions src/demo_head/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ dev = [
"mypy",
]

[tool.pdm.scripts]
help = {cmd = "make help", help = "Show this help (default)"}
all = {cmd = "make all", help = "Run an entire CI pipeline: formatters, linters and tests"}
format = {cmd = "make format", help = "Format with all tools"}
lint = {cmd = "make lint", help = "Lint with all tools"}
isort = {cmd = "make isort", help = "Format with isort"}
black = {cmd = "make black", help = "Format with black"}
ruff = {cmd = "make ruff", help = "Lint with ruff"}
mypy = {cmd = "make mypy", help = "Lint with mypy"}
image = {cmd = "make image", help = "Build docker image"}
up = {cmd = "make up", help = "Run Compose stack"}
down = {cmd = "make down", help = "Stop Compose stack"}

[tool.isort]
line_length = 120
force_single_line = true
Expand Down
2 changes: 1 addition & 1 deletion src/demo_nft_marketplace/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COMPOSE=deploy/compose.yaml
help: ## Show this help (default)
@grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv grep -F | sed -e 's/\\$$//' | sed -e 's/##//'

all: ## Run a whole CI pipeline: formatters, linters and tests
all: ## Run an entire CI pipeline: formatters, linters and tests
make format lint

format: ## Format with all tools
Expand Down
Loading

0 comments on commit a9d7d13

Please sign in to comment.