Skip to content

Commit

Permalink
ci: pre-commit updates (#542)
Browse files Browse the repository at this point in the history
* use flake8 from github
* update pre-commit hooks
  • Loading branch information
vbarua committed Aug 16, 2023
1 parent ede90ab commit 9078041
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions tools/proto_prefix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9078041

Please sign in to comment.