Skip to content

Commit

Permalink
add mypy and black checks to 'make test'; resolve lints
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut committed Nov 12, 2024
1 parent 9880d5a commit 8634fcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ super-clean: super-clean-message clean-silent
@rm -rf venv*


test: test-versions test-installed test-coverage
test: test-mypy test-black test-versions test-installed test-coverage
@# test-coverage needs to be last in deps, don't clean after it runs!
@echo "\n(test) completed\n"

test-mypy:
mypy green example

test-black:
black --check --diff green example

test-local:
@pip3 install --upgrade -e '.[dev]'
@make test-installed
Expand Down
4 changes: 2 additions & 2 deletions green/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ def ddebug(msg: str, err: ExcInfoType | None = None) -> None: # pragma: no cove
error_string = "".join(traceback.format_exception(*err))
else:
error_string = ""
sys.__stdout__.write(f"({os.getpid()}) {msg} {error_string}\n")
sys.__stdout__.flush()
sys.__stdout__.write(f"({os.getpid()}) {msg} {error_string}\n") # type: ignore
sys.__stdout__.flush() # type: ignore


class ProcessLogger:
Expand Down

0 comments on commit 8634fcc

Please sign in to comment.