im trying to exclude some files/directories/anythi...
# general
a
im trying to exclude some files/directories/anything from
docformatter
- does anyone have any ideas how this could be acheived?
i have tried adding the
-e
arg to my
pants.toml
but after reading the source code (for docformatter) the implementation only works with
-r
- the docs are pretty terrible/misleading
im guessing pants is not invoking docformatter that way as no amount of
-e
excludes the files/dirs i want to
nm - i think i have figured it out - i added a
BUILD
with
python_sources
and skipped there
r
I think this should also work if you want to ignore all files in current directory and below
Copy code
__defaults__(all=dict(skip_docformatter=True))
https://www.pantsbuild.org/docs/targets#field-default-values
a
thanks - seems to be working just adding it to python_sources - i had them added previously as sources of a parent dir - but shifting the build seems to have worked