-
Notifications
You must be signed in to change notification settings - Fork 3
Add --ignore
CLI option and ignore_files
config field
#60
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
base: main
Are you sure you want to change the base?
Conversation
because it isn't available in earlier versions.
Windows uses different path separators of course, so there is no easy way to get this doctest working on both platforms. Instead let's just skip this...
Files: src/docstub/_vendored/stdlib.py | ||
Copyright: 2001-2025, Python Software Foundation | ||
License: PSF-2.0 |
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.
@stefanv could I ask you to take a look if I handled the license situation correctly here? I'd like to vendor Python's glob.translate
which is only available from 3.13 onward.
I'm also not sure if need to adapt the SPDX license identifier in the pyproject.toml
since the vendored part now uses a different one. 🤔
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 starting to use the SPDX identifiers. There is now a new PEP that allows you to use a specifier+file in pyproject.toml.
Your file seems to be formatted roughly correctly according to https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/#stanzas, except for the dashes.
Closes #59
Both CLI option and config field allow ignoring directories or files in the package directory that docstub is invoked on.