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

Fortitude should respect .gitignore #231

Open
LiamPattinson opened this issue Dec 12, 2024 · 1 comment
Open

Fortitude should respect .gitignore #231

LiamPattinson opened this issue Dec 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@LiamPattinson
Copy link
Collaborator

Ruff has the options --respect-gitignore (active by default) and --no-respect-gitignore. If running under the latter, ruff check . at the top level of a git repo will start looking into folders like build/, target/, etc (it seems to avoid searching under venv/.venv unless you specifically request them).

Fortitude should behave similarly.

@LiamPattinson
Copy link
Collaborator Author

A complication to this is that there may be nested .gitignore files, so we'll have to add to the set of excluded file patterns as we recurse through directories. It'll probably be best to see how Ruff handles this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant