-
Notifications
You must be signed in to change notification settings - Fork 81
Added command line exclude option #44
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
Conversation
docformatter.py
Outdated
@@ -38,6 +38,7 @@ | |||
import sys | |||
import textwrap | |||
import tokenize | |||
from distutils.sysconfig import get_python_lib |
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.
Could you try with standard sysconfig
module instead of distutils?
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.
Sure, can do. Thx for the input
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.
Thanks!
Added a simple exclude command line option which can be used to exclude folders and files. Further site-packages get excluded.
Exclusion can be triggered via the
-e
or--exclude
flag following multiple folder or file names e.g.-e <folder> <folder> <file>
. Files and folders are excluded in thefind_py_files
method viare.search
.