mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Write test for auto-validating manifest at root of repo
This commit is contained in:
parent
37e94b1e1e
commit
9fa237fbe0
4 changed files with 27 additions and 22 deletions
|
|
@ -8,6 +8,7 @@ import os.path
|
|||
import yaml
|
||||
|
||||
import pre_commit.constants as C
|
||||
from pre_commit import git
|
||||
|
||||
|
||||
class InvalidManifestError(ValueError): pass
|
||||
|
|
@ -69,8 +70,7 @@ def run(argv):
|
|||
args = parser.parse_args(argv)
|
||||
|
||||
if args.filename is None:
|
||||
# TODO: filename = git.get_root() + C.MANIFEST_FILE
|
||||
raise NotImplementedError
|
||||
filename = os.path.join(git.get_root(), C.MANIFEST_FILE)
|
||||
else:
|
||||
filename = args.filename
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue