diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2dbdbe4..0e6b994 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: args: [ "--fix=lf" ] - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell files: \.(py|sh|rst|yml|yaml)$ @@ -52,28 +52,28 @@ repos: ] - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.17.0 hooks: - id: pyupgrade # 将Python代码升级到新版本的Python语法 args: [ "--py310-plus" ] - repo: https://github.com/psf/black - rev: "24.4.2" + rev: "24.8.0" hooks: - id: black # 自动格式化Python代码,符合PEP 8风格指南 args: [--line-length=88] - repo: https://github.com/commitizen-tools/commitizen - rev: v3.25.0 + rev: v3.28.0 hooks: - id: commitizen # 确保commit信息遵循Conventional Commits标准 stages: [ commit-msg ] - repo: 'https://github.com/PyCQA/flake8' - rev: 7.0.0 + rev: 7.1.1 hooks: - id: flake8 args: @@ -83,7 +83,7 @@ repos: types: [ python ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.11.1 hooks: - id: mypy args: [ --ignore-missing-imports,--disallow-untyped-defs, --show-error-codes ] diff --git a/src/eval/logger.py b/src/eval/logger.py index f582feb..0901b3c 100644 --- a/src/eval/logger.py +++ b/src/eval/logger.py @@ -3,12 +3,11 @@ from typing import Literal import torch +import wandb from matplotlib import pyplot as plt from pandas import DataFrame from torch import Tensor -import wandb - from ..my_gsplat.geometry import compute_silhouette_diff from .utils import calculate_RMSE_np