Skip to content

Ignore pytest cache directory#1101

Merged
N-Parsons merged 3 commits into
exercism:masterfrom
N-Parsons:gitignore-cache
Nov 13, 2017
Merged

Ignore pytest cache directory#1101
N-Parsons merged 3 commits into
exercism:masterfrom
N-Parsons:gitignore-cache

Conversation

@N-Parsons

@N-Parsons N-Parsons commented Nov 12, 2017

Copy link
Copy Markdown
Contributor

If people use pytest-cache when working on exercises, it creates a .cache directory that is currently not ignored - I've experienced this myself, and I just saw a PR with this issue.

This PR updates .gitignore to ignore the cache directories of py-test and Python modules (.cache and __pycache__, respectively).

@cmccandless cmccandless left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the use of modules isn't common in this repository, would it be prudent to also ignore __pycache__?

@N-Parsons

N-Parsons commented Nov 13, 2017

Copy link
Copy Markdown
Contributor Author

@cmccandless, I've added __pycache__ - at the very least it can't hurt to ignore it.

@cmccandless

Copy link
Copy Markdown
Contributor

@N-Parsons merge at will.

@N-Parsons N-Parsons merged commit a89a703 into exercism:master Nov 13, 2017
@N-Parsons N-Parsons deleted the gitignore-cache branch November 13, 2017 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants