-
Notifications
You must be signed in to change notification settings - Fork 3
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 #17 from timewave-computer/feature-opp-execution
UX Improvements, Performance Improvements, Bug Fixes
- Loading branch information
Showing
56 changed files
with
11,689 additions
and
871 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
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,30 @@ | ||
PROTO_DIR = 'proto' | ||
PROTO_SOURCES := $(shell find $(PROTO_DIR) -name '*.proto') | ||
|
||
build/gen: | ||
mkdir -p $@ | ||
|
||
.PHONY: proto | ||
proto: build/gen $(PROTO_SOURCES) | ||
protoc --proto_path=$(PROTO_DIR) --python_out=build/gen --mypy_out=build/gen --go-grpc_out=build/gen --mypy_grpc_out=build/gen $(PROTO_SOURCES) | ||
|
||
.PHONY: test | ||
test: | ||
PYTHONPATH=src:build/gen python -m pytest tests | ||
|
||
.PHONY: run | ||
run: | ||
PYTHONPATH=src:build/gen python main.py | ||
|
||
.PHONY: lint | ||
lint: | ||
mypy src --install-types --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --strict | ||
mypy tests --install-types --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --strict | ||
mypy main.py --install-types --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs | ||
ruff check src | ||
ruff check tests | ||
ruff check main.py | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf build/gen |
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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.