Skip to content

Exclude _dev directory from pytest #83

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

slizewsk
Copy link
Contributor

@slizewsk slizewsk commented Mar 20, 2025

Added norecursedirs to exclude _dev directory from pytest in pyproject.toml.

Specifically, only addition is

norecursedirs = ["{{ cookiecutter.module_name }}[\\/]_dev"] 

under [tool.pytest.ini_options]

This addition ensures pytest never tries to go into the /_dev folder.
Fixes #82

Hope this is a flexible solution 👍

@mhvk
Copy link

mhvk commented Mar 28, 2025

@Cadair - this fix helped in my class, where students set up their own packages using the package template. Note that there is another fix in #84, which I think as a fix is less good, but the changes to the text there seem to make sense.

@Cadair Cadair merged commit faa59ee into OpenAstronomy:main Apr 28, 2025
7 checks passed
@Cadair
Copy link
Member

Cadair commented Apr 28, 2025

Thanks!

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.

Bug: Pytests Fail Due to Missing setuptools_scm
3 participants