From d04bb428ab53680a7c26d6c06a71eb6dd89f82c1 Mon Sep 17 00:00:00 2001 From: "bodong.yang" Date: Fri, 28 Jun 2024 03:13:41 +0000 Subject: [PATCH 1/2] pre-commit: enable check-yaml, check-toml and codespell --- .pre-commit-config.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 610b2bb88..9bfe9f007 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,9 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: + - id: check-yaml + args: ["--allow-multiple-documents"] + - id: check-toml - id: end-of-file-fixer - id: trailing-whitespace # Using this mirror lets us use mypyc-compiled black, which is about 2x faster @@ -32,12 +35,12 @@ repos: - id: pyproject-fmt # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version additional_dependencies: ["tox>=4.9"] - # - repo: https://github.com/codespell-project/codespell - # rev: v2.2.4 - # hooks: - # - id: codespell - # additional_dependencies: - # - tomli + - repo: https://github.com/codespell-project/codespell + rev: v2.2.4 + hooks: + - id: codespell + additional_dependencies: + - tomli - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.41.0 hooks: From f6f0e2a7002ddf37cadf8506f7e69145e15c330e Mon Sep 17 00:00:00 2001 From: "bodong.yang" Date: Fri, 28 Jun 2024 08:58:39 +0000 Subject: [PATCH 2/2] remove codespell --- .pre-commit-config.yaml | 6 ------ src/otaclient_common/proto_wrapper_README.md | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9bfe9f007..a984b7ab2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,12 +35,6 @@ repos: - id: pyproject-fmt # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version additional_dependencies: ["tox>=4.9"] - - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 - hooks: - - id: codespell - additional_dependencies: - - tomli - repo: https://github.com/igorshubovych/markdownlint-cli rev: v0.41.0 hooks: diff --git a/src/otaclient_common/proto_wrapper_README.md b/src/otaclient_common/proto_wrapper_README.md index 4aab4ca71..51b500d76 100644 --- a/src/otaclient_common/proto_wrapper_README.md +++ b/src/otaclient_common/proto_wrapper_README.md @@ -33,7 +33,7 @@ A list of helper types/utils are provided to generate wrapper types from compile - Wrappers for protobuf built-in well-known type - NOTE: Currenty only support `Duration` type. + NOTE: Currently only support `Duration` type. | **name** | **description** | **usage** | | --- | --- | --- |