mirror of
https://github.com/bndr/pipreqs.git
synced 2025-07-21 01:10:01 +00:00
fixed lint warnings
This commit is contained in:
parent
a4e7cbc772
commit
061a9b5f64
@ -192,7 +192,6 @@ def init(args):
|
||||
path = (args["--savepath"] if args["--savepath"] else
|
||||
os.path.join(args['<path>'], "requirements.txt"))
|
||||
|
||||
|
||||
if not args["--savepath"] and not args["--force"] and os.path.exists(path):
|
||||
logging.warning("Requirements.txt already exists, "
|
||||
"use --force to overwrite it")
|
||||
|
@ -105,12 +105,10 @@ class TestPipreqs(unittest.TestCase):
|
||||
self.assertEqual(
|
||||
import_name_without_aliases, expected_import_name_without_alias)
|
||||
|
||||
|
||||
def test_custom_pypi_server(self):
|
||||
self.assertRaises(requests.exceptions.MissingSchema, pipreqs.init, {'<path>': self.project, '--savepath': None,
|
||||
'--use-local': None, '--force': True, '--proxy': None, '--pypi-server': 'nonexistent'})
|
||||
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
os.remove(self.requirements_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user