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

Add options to ignore directories #426

Open
eugenenelou opened this issue Feb 29, 2024 · 1 comment
Open

Add options to ignore directories #426

eugenenelou opened this issue Feb 29, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@eugenenelou
Copy link

eugenenelou commented Feb 29, 2024

Currently all directories are walked through, except the ones ignored by .gitignore

it would be nice to be able to ignore the walkthrough of some directories, maybe because they are big and do not contain python code.

or in my case if they crash the walkthrough. I'm using pdm and the .venv/ at the root of my project contains symlink to python versions outside of the project and it raises an error:

ValueError: '/home/eugene/.pyenv/versions/3.10.5/bin/python3.10' is not in the subpath of '/home/eugene/my_projects' OR one path is relative and the other is absolute. 

for now I'm resorting to:

fixit fix -a $(ls -A -I.venv)
@amyreese amyreese added the enhancement New feature or request label Feb 29, 2024
@amyreese
Copy link
Member

We can get this more or less “for free” through trailrunner. Just need to add a config option to fixit and pass that value along to trailrunner when walking paths. Shouldn’t be much work if someone is interested in a PR.

@amyreese amyreese added this to the 2.x milestone Feb 29, 2024
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

2 participants