Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Sheni committed Mar 21, 2022
1 parent 2a58f4d commit b0b920a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def generate_min_requirements(paths, options=None, extras_require=None, output_f
write_file(min_requirements, output_filepath)
return min_requirements


def write_file(data, filepath):
try:
with open(filepath, 'w') as f:
Expand Down
5 changes: 3 additions & 2 deletions minimum_dependency_generator/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from ..minimum_dependency_generator import write_file
from tempfile import NamedTemporaryFile

from ..minimum_dependency_generator import write_file


def test_write_text_file():
data = 'scipy==0.8.0\npandas==1.2.0\n'
with NamedTemporaryFile() as temp:
Expand All @@ -10,4 +12,3 @@ def test_write_text_file():
assert len(min_reqs) == 2
assert 'scipy==0.8.0' == min_reqs[0].strip()
assert 'pandas==1.2.0' == min_reqs[1].strip()

0 comments on commit b0b920a

Please sign in to comment.