mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 20:16:53 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
7abaf07fb5
commit
5008ecfb20
1 changed files with 4 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ from typing import Sequence
|
||||||
from pre_commit_hooks.util import CalledProcessError
|
from pre_commit_hooks.util import CalledProcessError
|
||||||
from pre_commit_hooks.util import cmd_output
|
from pre_commit_hooks.util import cmd_output
|
||||||
|
|
||||||
|
|
||||||
def has_naming_convention(
|
def has_naming_convention(
|
||||||
patterns: AbstractSet[str] = frozenset(),
|
patterns: AbstractSet[str] = frozenset(),
|
||||||
) -> bool:
|
) -> bool:
|
||||||
|
|
@ -42,6 +43,6 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||||
|
|
||||||
return int(has_naming_convention(patterns))
|
return int(has_naming_convention(patterns))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
raise SystemExit(main())
|
raise SystemExit(main())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue