mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-01 06:20:33 -06:00
Write test for auto-validating manifest at root of repo
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user