diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91e7bf540..d30e95a5c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,20 +4,20 @@ repos: hooks: - id: buf-lint - repo: https://github.com/adrienverge/yamllint.git - rev: v1.26.0 + rev: v1.32.0 hooks: - id: yamllint args: [-c=.yamllint.yaml] - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v8.0.0 + rev: v9.5.0 hooks: - id: commitlint stages: [commit-msg] - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.7.0 hooks: - id: black -- repo: https://gitlab.com/pycqa/flake8 - rev: 4.0.1 +- repo: https://github.com/pycqa/flake8 + rev: 6.1.0 hooks: - id: flake8 diff --git a/tools/proto_prefix.py b/tools/proto_prefix.py index 3313cad4c..3e3cec295 100755 --- a/tools/proto_prefix.py +++ b/tools/proto_prefix.py @@ -104,7 +104,6 @@ def group_tokens(tokens): token_it = iter(tokens) group = Group() for cls, match in token_it: - # Look for the first identifier. if cls != "ident": group.append(cls, match, False) @@ -232,7 +231,6 @@ def convert_groups(groups): inner_namespace = [] seen_options = False for group in groups: - # Update package statement. if group[0] == "package": assert len(group) == 3