-
Notifications
You must be signed in to change notification settings - Fork 47
Use pytest to run project tests #121
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
Conversation
Voyz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see this moving forward, thanks for the contribution 🙌 I've left a few small comments, but looks good in general
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I understand this is useful to you, but I personally don't use Claude, so I'd think this should be in .gitignore. I'd have hoped for a standard AGENTS.md file to be propagated through the industry, but sadly that doesn't seem to be the case yet 🥲
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a helper to any contributor, it would be nice to have all the agent type things, but we can leave for another discussion.
I can add all types to gitignore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it maybe be added in some sub-directory? Like './AI/CLAUDE.MD` or alike? I'd think it would be awesome to start including these, but I'd rather not see the root dir polluted with settings that are individual to each dev - similar to .iml, .vscode, .venv, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or agents/CLAUDE.md ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh that's awesome! yeah, let's go with that!
| [tool:pytest] | ||
| testpaths = test | ||
| pythonpath = . test | ||
| addopts = -v --tb=short | ||
| python_files = test_*.py | ||
| python_classes = Test* | ||
| python_functions = test_* No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been trying to use pytest (and Pydantic!) in other projects to transition myself to your camp slowly, and I think these look like they're like this by default. Is there a need to specify any of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there's a few in here that are redundant, but others aren't, I can remove the defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks! 👍
|
Awesome, indeed! Kudos for introducing all that CI pipe 🙌 The test_utils import issue is probably related to pytest not finding that file. Any idea on how to fix it? Was it caused by removing any of these config lines from pytest.ini? |
|
Looks like we're good! Do you mind one more pass if I've missed anything @Voyz ? |
|
Pretty much there, just need to remove that badge for now: |
|
@Voyz Ah yes! Here we go. |
|
Sweet! LGTM, thanks 🙌 |

Here was the output from local coverage: