Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for invoke #4

Closed
briggySmalls opened this issue Sep 25, 2019 · 2 comments · Fixed by #5
Closed

Add documentation for invoke #4

briggySmalls opened this issue Sep 25, 2019 · 2 comments · Fixed by #5

Comments

@briggySmalls
Copy link
Owner

I really like using invoke for linting/formatting/testing etc. but people may not realise how to use it.

This should be added to the project documentation

@yngtodd
Copy link

yngtodd commented Oct 14, 2019

I am curious about this. Currently when I run invoke --release on a new project, I am running into a missing file error for .coverage:

FileNotFoundError: [Errno 2] No such file or directory: '/Users/ygx/src/rust/ferris/.coverage'

Are there extra args for invoke coverage that create this file, or does it need to be created manually?

briggySmalls pushed a commit that referenced this issue Oct 15, 2019
See yngtodd's comment in #4
briggySmalls pushed a commit that referenced this issue Oct 15, 2019
See yngtodd's comment in #4
@briggySmalls
Copy link
Owner Author

briggySmalls commented Oct 15, 2019

@yngtodd thanks so much for your message. You found a bug 🙈

I've just pushed a fix, so future projects should not have this issue.

The problem is in the clean_tests function of tasks.py. The code will throw errors if the directories it is cleaning are not present.

You can see the fix I pushed in c6ac555. If you are using python 3.8 then you can just add the missing_ok=True parameter to the call to unlink. But I've pushed a fix that supports all versions of python.

Sorry for the confusion, and thanks for using the tool

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 a pull request may close this issue.

2 participants