Files
ROS2_learn/requirements-dev.txt
T
2026-08-03 18:09:35 +08:00

28 lines
787 B
Plaintext

# =============================================================================
# requirements-dev.txt —— 开发工具集合(lint / format / type-check)。
#
# 安装: pip install -r requirements-dev.txt
# 用途:
# ruff —— Rust 写的超快 linter,替代 flake8 + isort
# black —— 不可配置的代码格式化器
# mypy —— 静态类型检查
# pytest —— 测试框架(已在 requirements.txt 同步一份)
# pre-commit —— git hook 框架(可选)
# =============================================================================
# 代码风格 / lint
ruff>=0.1.0
black>=23.0
flake8>=6.0
isort>=5.12
# 静态类型
mypy>=1.5
# 测试
pytest>=7.4
pytest-cov>=4.1
pytest-timeout>=2.1
# Git hooks(可选: pre-commit install)
pre-commit>=3.4