Skip to content
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

Way to exclude files from module #15

Open
pzelnip opened this issue Nov 21, 2019 · 1 comment
Open

Way to exclude files from module #15

pzelnip opened this issue Nov 21, 2019 · 1 comment

Comments

@pzelnip
Copy link

pzelnip commented Nov 21, 2019

Is there any way to say "I want to run removestar over all files in my project except the ones in this directory?"

In many of our projects we have a directory where import *'s are quite useful and would be cumbersome to replace with explicit imports, but those are restricted to a specific folder within the project.

For example we might have a directory structure like:

someproj/
    / tests
    / packagea
    / packageb
        / subpackageb_a
    / exclude_this

And I'd like to be able to do something like:

removestar someproj --exclude someproj/exclude_this

And have removestar run over everything in tests, packagea, packageb, etc, but not exclude_this

Alternatively, is there a pragma or directive one could put in a source file to have it excluded from being modified/examined by removestar? (thinking like the #pylint: disable directive that Pylint supports )

@asmeurer
Copy link
Owner

This doesn't exist yet but it should. Exclusion can be done currently using advanced shell globbing. https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Pattern-Matching

@Saransh-cpp Saransh-cpp self-assigned this Sep 4, 2023
@Saransh-cpp Saransh-cpp removed their assignment Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants