Skip to content

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