mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-13 06:24:16 +00:00
detect_gcp_credentials hook
This commit is contained in:
parent
b73acb198e
commit
e0c61d89d0
929 changed files with 311695 additions and 0 deletions
20
.venv/lib/python3.10/site-packages/iniconfig/exceptions.py
Normal file
20
.venv/lib/python3.10/site-packages/iniconfig/exceptions.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
from __future__ import annotations
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing_extensions import Final
|
||||
|
||||
|
||||
class ParseError(Exception):
|
||||
path: Final[str]
|
||||
lineno: Final[int]
|
||||
msg: Final[str]
|
||||
|
||||
def __init__(self, path: str, lineno: int, msg: str) -> None:
|
||||
super().__init__(path, lineno, msg)
|
||||
self.path = path
|
||||
self.lineno = lineno
|
||||
self.msg = msg
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"{self.path}:{self.lineno + 1}: {self.msg}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue