Skip to content
Closed
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ uv.lock
buildcxx/
node_modules/
*.bib.original
.claude
.spec-workflow
.serena

# Coverage files
.coverage
Expand All @@ -71,3 +74,11 @@ frozen_model.*

# Test system directories
system/

# clangd
compile_commands.json
source/.cache

# pytorch profiler
*.tfevents.*
*.pt.trace.json
26 changes: 13 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://gh-proxy.com/github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
Expand All @@ -21,13 +21,13 @@ repos:
- id: check-symlinks
- id: check-toml
# Python
- repo: https://github.com/PyCQA/isort
- repo: https://gh-proxy.com/github.com/PyCQA/isort
rev: 7.0.0
hooks:
- id: isort
files: \.py$
exclude: ^source/3rdparty
- repo: https://github.com/astral-sh/ruff-pre-commit
- repo: https://gh-proxy.com/github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.11
hooks:
Expand All @@ -38,7 +38,7 @@ repos:
- id: ruff-format
exclude: ^source/3rdparty
types_or: [python, pyi, jupyter]
- repo: https://github.com/pycqa/flake8
- repo: https://gh-proxy.com/github.com/pycqa/flake8
# flake8 cannot autofix
rev: "7.3.0"
hooks:
Expand All @@ -47,43 +47,43 @@ repos:
- torchfix==0.6.0
- flake8-pyproject==1.2.3
# numpydoc
- repo: https://github.com/Carreau/velin
- repo: https://gh-proxy.com/github.com/Carreau/velin
rev: 0.0.12
hooks:
- id: velin
args: ["--write"]
exclude: ^source/3rdparty
# Python inside docs
- repo: https://github.com/asottile/blacken-docs
- repo: https://gh-proxy.com/github.com/asottile/blacken-docs
rev: 1.20.0
hooks:
- id: blacken-docs
# C++
- repo: https://github.com/pre-commit/mirrors-clang-format
- repo: https://gh-proxy.com/github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
hooks:
- id: clang-format
exclude: ^(source/3rdparty|source/lib/src/gpu/cudart/.+\.inc|.+\.ipynb$|.+\.json$)
# markdown, yaml, CSS, javascript
- repo: https://github.com/pre-commit/mirrors-prettier
- repo: https://gh-proxy.com/github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [markdown, yaml, css]
# workflow files cannot be modified by pre-commit.ci
exclude: ^(source/3rdparty|\.github/workflows|\.clang-format)
# Shell
- repo: https://github.com/scop/pre-commit-shfmt
- repo: https://gh-proxy.com/github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
hooks:
- id: shfmt
# CMake
- repo: https://github.com/cheshirekow/cmake-format-precommit
- repo: https://gh-proxy.com/github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
#- id: cmake-lint
- repo: https://github.com/njzjz/mirrors-bibtex-tidy
- repo: https://gh-proxy.com/github.com/njzjz/mirrors-bibtex-tidy
rev: v1.14.0
hooks:
- id: bibtex-tidy
Expand All @@ -103,7 +103,7 @@ repos:
- --remove-empty-fields
- --wrap=80
# license header
- repo: https://github.com/Lucas-C/pre-commit-hooks
- repo: https://gh-proxy.com/github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
# C++, js
Expand Down Expand Up @@ -153,7 +153,7 @@ repos:
# unclear why PairDeepMD is used instead of PairDeePMD
exclude: .pre-commit-config.yaml|source/lmp
# customized pylint rules
- repo: https://github.com/pylint-dev/pylint/
- repo: https://gh-proxy.com/github.com/pylint-dev/pylint/
rev: v4.0.4
hooks:
- id: pylint
Expand Down
Loading
Loading