Skip to content

[Enhancement]: ignore/skip files and directories when scanning #358

@cgoldberg

Description

@cgoldberg

Overview

I saw the ability to select a path in the [[tool.refurb.amend]] config section. That is very helpful, but it would be great if I could also ignore/skip directories using similar glob syntax as .gitignore.

It would also be nice to be able to respect .gitignore and not process any files I have ignored.


Thanks for the great tool!

Proposal

This could be a new config and command-line option:

skip = ["test_*.py", "foo/"]

or

refurb --skip='foo/' .

Another idea is to do this via a .refurbignore file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions