Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(pre-commit): add pre-commit-hooks check-yaml and check-toml #328

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -32,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:
Expand Down
2 changes: 1 addition & 1 deletion src/otaclient_common/proto_wrapper_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** |
| --- | --- | --- |
Expand Down
Loading