4 Star 21 Fork 16

monkey_cici/labelme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1002 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kentaro Wada 提交于 2025-02-16 22:54 +08:00 . Add mypy check
ifneq ($(OS),Windows_NT)
# On Unix-based systems, use ANSI codes
BLUE = \033[36m
BOLD_BLUE = \033[1;36m
BOLD_GREEN = \033[1;32m
RED = \033[31m
YELLOW = \033[33m
BOLD = \033[1m
NC = \033[0m
endif
escape = $(subst $$,\$$,$(subst ",\",$(subst ',\',$(1))))
define exec
@echo "$(BOLD_BLUE)$(call escape,$(1))$(NC)"
@$(1)
endef
help:
@echo "$(BOLD_GREEN)Available targets:$(NC)"
@grep -E '^[a-zA-Z_-].+:.*?# .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?# "}; \
{printf " $(BOLD_BLUE)%-20s$(NC) %s\n", $$1, $$2}'
PACKAGE_NAME:=labelme
setup: # Setup the development environment
$(call exec,uv sync --dev)
format: # Format code
$(call exec,uv run ruff format)
$(call exec,uv run ruff check --fix)
lint:
$(call exec,uv run ruff format --check)
$(call exec,uv run ruff check)
mypy:
$(call exec,uv run mypy --package $(PACKAGE_NAME))
check: lint mypy # Run checks
test: # Run tests
$(call exec,uv run pytest -v tests/)
build: # Build the package
$(call exec,uv build)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/monkeycc/labelme.git
git@gitee.com:monkeycc/labelme.git
monkeycc
labelme
labelme
main

搜索帮助