Skip to content

Possible to get --verifytypes to ignore script files in a library? #2475

Answered by erictraut
Pyprohly asked this question in Q&A
Discussion options

You must be logged in to vote

Do you include these scripts within the package of your library, or are the used only at build time? If they're build-only, I recommend excluding them from your package.

If these scripts need to be included within your library package, I recommend putting them in their own subdirectory that starts with an underscore, such as _scripts. This will tell type checkers that the files within this directory are not part of the library interface and are not meant to be imported by consumers of the library. The --verifytypes check will also ignore all files in that directory.

Does that address your needs?

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jakebailey
Comment options

@Pyprohly
Comment options

@hmc-cs-mdrissi
Comment options

@erictraut
Comment options

@Pyprohly
Comment options

Answer selected by Pyprohly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants