How do I ignore all Python files in project root? #13730
Unanswered
elliot-100
asked this question in
Q&A
Replies: 2 comments
-
I'm not sure I understand what you're trying to do. Do you want to exclude specific files or all files in the root directory? I think the following allows to only include python files that are in a subdirectory but not files that are in the root directory. include = ["*/**/*.py"] |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sorry I wasn't clear - I meant exclude all files in the root directory. My either/or was intended to be about whether it could be implemented with an include or exclude pattern or both. Will try what you suggest - thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm sure this has a simple answer, but I haven't found it or worked it out.
I know how to include or exclude Python files in given directories, but is there a way of
and/or
Beta Was this translation helpful? Give feedback.
All reactions