Skip to content

Commit

Permalink
Merge pull request #3 from Atticuszz/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] autoupdate
  • Loading branch information
AtticusZeller authored Aug 6, 2024
2 parents 5a22189 + 470f2c8 commit 6f36ab6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)$
Expand Down Expand Up @@ -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:
Expand All @@ -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 ]
Expand Down
3 changes: 1 addition & 2 deletions src/eval/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6f36ab6

Please sign in to comment.