Skip to content

Commit

Permalink
Ignore temporary files
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Apr 19, 2017
1 parent ce723cb commit 5763dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ htmlcov/
autoflake.egg-info/
/.coverage
/pypi_tmp/
/tmp.*/
2 changes: 1 addition & 1 deletion test_autoflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ def temporary_file(contents, directory='.', prefix=''):


@contextlib.contextmanager
def temporary_directory(directory='.', prefix=''):
def temporary_directory(directory='.', prefix='tmp.'):
"""Create temporary directory and yield its path."""
temp_directory = tempfile.mkdtemp(prefix=prefix, dir=directory)
try:
Expand Down

0 comments on commit 5763dde

Please sign in to comment.