diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e43de9ad..6b32a0020 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ exclude: ^reacnetgenerator/static/webpack/\.yarn/releases/.*$ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -17,7 +17,7 @@ repos: - id: mixed-line-ending # Python - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.4 + rev: v0.8.4 hooks: - id: ruff args: ["--fix"] @@ -25,7 +25,7 @@ repos: - id: ruff-format types_or: [python, pyi, jupyter] - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "1.3.1" + rev: "1.4.1" hooks: - id: tox-ini-fmt # numpydoc @@ -36,12 +36,14 @@ repos: args: ["--write"] # C++ - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.5 + rev: v19.1.5 hooks: - id: clang-format + exclude: \.ipynb$ + # Cython - repo: https://github.com/MarcoGorelli/cython-lint - rev: v0.16.2 + rev: v0.16.6 hooks: - id: cython-lint - id: double-quote-cython-strings diff --git a/docs/conf.py b/docs/conf.py index 62758d209..8f7990531 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,7 +20,7 @@ # -- Project information ----------------------------------------------------- project = "ReacNetGenerator" -copyright = "2019-%d, DeepModeling" % datetime.now().year +copyright = f"2019-{datetime.now().year}, DeepModeling" author = "Jinzhe Zeng" # The full version, including alpha/beta/rc tags