Skip to content

Commit

Permalink
v1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimon Lucas (LCM) authored and Cimon Lucas (LCM) committed Jan 19, 2017
1 parent e5f17e6 commit b2250c4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hooks.yaml
@@ -1,6 +1,6 @@
- id: python-safety-dependencies-check
name: safety
description: Analyze your Python requirements for known security vulnerabilities
entry: safety
entry: safety_check
language: python
files: requirements
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -29,7 +29,7 @@
],
entry_points={
'console_scripts': [
'safety = pre_commit_hooks.safety:main',
'safety_check = pre_commit_hooks.safety_check:main',
],
},
)
6 changes: 4 additions & 2 deletions tests/safety_test.py
Expand Up @@ -2,7 +2,9 @@
from __future__ import absolute_import
from __future__ import unicode_literals

from pre_commit_hooks.safety import main as safety
from pre_commit_hooks.safety_check import main as safety

import pytest


def test_dev_requirements():
Expand All @@ -18,7 +20,7 @@ def test_editable_url_to_tarball_dependency(tmpdir):
requirements_file.write('-e https://files.pythonhosted.org/packages/6a/11/114c67b0e3c25c19497fde977538339530d8ffa050d6ec9349793f933faa/lockfile-0.10.2.tar.gz')
assert safety([str(requirements_file)]) == 0

# currently failing, cf. https://github.com/Lucas-C/pre-commit-hooks-safety/issues/1
@pytest.mark.xfail(reason='cf. https://github.com/Lucas-C/pre-commit-hooks-safety/issues/1')
def test_bare_url_to_tarball_dependency(tmpdir):
requirements_file = tmpdir.join('requirements.txt')
requirements_file.write('https://files.pythonhosted.org/packages/6a/11/114c67b0e3c25c19497fde977538339530d8ffa050d6ec9349793f933faa/lockfile-0.10.2.tar.gz')
Expand Down

0 comments on commit b2250c4

Please sign in to comment.