mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Auto-committing 'cli.py'
This commit is contained in:
+4
-1
@@ -871,6 +871,7 @@ def check():
|
||||
# Load the pipfile.
|
||||
p = pipfile.Pipfile.load(project.pipfile_location)
|
||||
|
||||
failed = False
|
||||
# Assert each specified requirement.
|
||||
for marker, specifier in p.data['_meta']['requires'].items():
|
||||
|
||||
@@ -879,7 +880,9 @@ def check():
|
||||
assert results[marker] == specifier
|
||||
except AssertionError:
|
||||
click.echo('Specifier {0} does not match {1}.'.format(crayons.red(marker), crayons.blue(specifier)))
|
||||
sys.exit(1)
|
||||
if failed:
|
||||
click.echo(crayons.red('Failed!'))
|
||||
sys.exit(1)
|
||||
|
||||
click.echo(crayons.green('Passed!'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user