mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Use covdefaults to handle coveragerc
This commit is contained in:
parent
4a3b10f0ed
commit
67c1beb322
19 changed files with 42 additions and 81 deletions
|
|
@ -46,7 +46,7 @@ def _hook_paths(
|
|||
|
||||
|
||||
def is_our_script(filename: str) -> bool:
|
||||
if not os.path.exists(filename): # pragma: windows no cover (symlink)
|
||||
if not os.path.exists(filename): # pragma: win32 no cover (symlink)
|
||||
return False
|
||||
with open(filename) as f:
|
||||
contents = f.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue