forked from spruceid/tzprofiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from dipdup-io/dipdup-7.2
- Loading branch information
Showing
24 changed files
with
243 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
!**/Dockerfile | ||
!**/Makefile | ||
!**/pyproject.toml | ||
!**/pdm.lock | ||
!**/*.lock | ||
!**/README.md | ||
!**/.keep | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.ONESHELL: | ||
.PHONY: $(MAKECMDGOALS) | ||
MAKEFLAGS += --no-print-directory | ||
## | ||
## 🚧 DipDup developer tools | ||
## | ||
PACKAGE=tzprofiles | ||
TAG=latest | ||
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 an entire CI pipeline | ||
make format lint | ||
|
||
format: ## Format with all tools | ||
make black | ||
|
||
lint: ## Lint with all tools | ||
make ruff mypy | ||
|
||
## | ||
|
||
black: ## Format with black | ||
black . | ||
|
||
ruff: ## Lint with ruff | ||
ruff check --fix . | ||
|
||
mypy: ## Lint with mypy | ||
mypy --no-incremental --exclude ${PACKAGE} . | ||
|
||
## | ||
|
||
image: ## Build Docker image | ||
docker buildx build . -t ${PACKAGE}:${TAG} | ||
|
||
up: ## Run Compose stack | ||
docker-compose -f ${COMPOSE} up -d --build | ||
docker-compose -f ${COMPOSE} logs -f | ||
|
||
down: ## Stop Compose stack | ||
docker-compose -f ${COMPOSE} down | ||
|
||
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
database: | ||
kind: sqlite | ||
path: ${SQLITE_PATH:-/tmp/tzprofiles.sqlite} | ||
|
||
logging: ${LOGLEVEL:-INFO} | ||
path: ${SQLITE_PATH:-/tmp/tzprofiles.sqlite} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# This env file was generated automatically by DipDup. Do not edit it! | ||
# Create a copy with .env extension, fill it with your values and run DipDup with `--env-file` option. | ||
# | ||
LOGLEVEL=INFO | ||
SQLITE_PATH=/tmp/tzprofiles.sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.