From 4fe438fc3ddd672586a4ae70cbe7ebad97ec87b4 Mon Sep 17 00:00:00 2001 From: YunLiu <55491388+KumoLiu@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:39:22 +0800 Subject: [PATCH] temp test Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com> --- .pre-commit-config.yaml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3fff6ed631..c3afb2592b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -26,33 +26,28 @@ repos: args: ['--autofix', '--no-sort-keys', '--indent=4'] - id: end-of-file-fixer - id: mixed-line-ending - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.3.5 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.6.9 hooks: - id: ruff args: - --fix - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.18.0 hooks: - id: pyupgrade - args: [--py37-plus] - name: Upgrade code excluding monai networks + args: [--py39-plus, --keep-runtime-typing] + name: Upgrade code with exceptions exclude: | (?x)( ^versioneer.py| - ^monai/_version.py| - ^monai/networks/| # no PEP 604 for torchscript tensorrt - ^monai/losses/ # no PEP 604 for torchscript tensorrt + ^monai/_version.py ) - - id: pyupgrade - args: [--py37-plus, --keep-runtime-typing] - name: Upgrade monai networks - files: (?x)(^monai/networks/) + - repo: https://github.com/asottile/yesqa - rev: v1.4.0 + rev: v1.5.0 hooks: - id: yesqa name: Unused noqa @@ -72,4 +67,4 @@ repos: rev: v2.4.0 hooks: - id: pycln - args: [--config=pyproject.toml] + args: [--config=pyproject.toml] \ No newline at end of file