From f8a032a156017a8ca17520cf7caf1ce83770aa46 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Tue, 27 May 2025 18:07:42 -0400 Subject: [PATCH] chore: use latest pycln --- .pre-commit-config.yaml | 122 ++++++++++++++++++++-------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e46c944..9c08c79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,61 +1,61 @@ -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 - hooks: - - id: check-yaml - - id: check-toml - - id: end-of-file-fixer - - id: trailing-whitespace - - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 - hooks: - - id: remove-crlf - - id: remove-tabs - - repo: https://github.com/google/yamlfmt - rev: v0.13.0 - hooks: - - id: yamlfmt - exclude: '^tests/' - - repo: https://github.com/pdm-project/pdm - rev: 2.19.2 - hooks: - - id: pdm-lock-check - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 - hooks: - - id: mypy - additional_dependencies: - - pydantic - - types-PyYAML - - repo: https://github.com/asottile/pyupgrade - rev: v3.17.0 - hooks: - - id: pyupgrade - - repo: https://github.com/hadialqattan/pycln - rev: v2.4.0 - hooks: - - id: pycln - args: [-a, --config=pyproject.toml] - - repo: https://github.com/PyCQA/bandit - rev: 1.7.10 - hooks: - - id: bandit - args: [-c, pyproject.toml] - additional_dependencies: ["bandit[toml]"] - - repo: https://github.com/PyCQA/isort - rev: 5.13.2 - hooks: - - id: isort - args: [--profile, black, --filter-files] - - repo: https://github.com/psf/black - rev: 24.8.0 - hooks: - - id: black -# - repo: local -# hooks: -# - id: pytest-check -# name: pytest-check -# entry: pdm run test -# language: system -# pass_filenames: false -# always_run: true +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-yaml + - id: check-toml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.5 + hooks: + - id: remove-crlf + - id: remove-tabs + - repo: https://github.com/google/yamlfmt + rev: v0.13.0 + hooks: + - id: yamlfmt + exclude: '^tests/' + - repo: https://github.com/pdm-project/pdm + rev: 2.19.2 + hooks: + - id: pdm-lock-check + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.11.2 + hooks: + - id: mypy + additional_dependencies: + - pydantic + - types-PyYAML + - repo: https://github.com/asottile/pyupgrade + rev: v3.17.0 + hooks: + - id: pyupgrade + - repo: https://github.com/hadialqattan/pycln + rev: v2.5.0 + hooks: + - id: pycln + args: [-a, --config=pyproject.toml] + - repo: https://github.com/PyCQA/bandit + rev: 1.7.10 + hooks: + - id: bandit + args: [-c, pyproject.toml] + additional_dependencies: ["bandit[toml]"] + - repo: https://github.com/PyCQA/isort + rev: 5.13.2 + hooks: + - id: isort + args: [--profile, black, --filter-files] + - repo: https://github.com/psf/black + rev: 24.8.0 + hooks: + - id: black +# - repo: local +# hooks: +# - id: pytest-check +# name: pytest-check +# entry: pdm run test +# language: system +# pass_filenames: false +# always_run: true