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

Shed creates a .hypothesis/ directory when run #26

Closed
TomFryers opened this issue Jan 13, 2022 · 3 comments
Closed

Shed creates a .hypothesis/ directory when run #26

TomFryers opened this issue Jan 13, 2022 · 3 comments

Comments

@TomFryers
Copy link

This is a bit annoying. It doesn't seem to contain very much: just .hypothesis/unicode_data/13.0.0/charmap.json.gz.

@hugovk
Copy link

hugovk commented Jan 13, 2022

This is HypothesisWorks/hypothesis#3140, fixed in hypothesis 6.28.0.

Try upgrading hypothesis? For example:

python -m pip install -U hypothesis

@TomFryers
Copy link
Author

That doesn't seem to fix it. I think the directory appears whenever hypothesis is imported:

$ ls -A
$ python -c "import hypothesis;print(hypothesis.__version__)"
6.35.0
$ ls -A
.hypothesis

@Zac-HD
Copy link
Owner

Zac-HD commented Jan 13, 2022

@hugovk, it's related but a distinct issue - shed --refactor runs Hypothesis' codemods, which require importing Hypothesis to check the signature of various functions.

I think we can work around this by only doing so if a simple regex shows that the file being formatted actually uses Hypothesis, which should be a perf win too.

@Zac-HD Zac-HD closed this as completed in 2501f9d Jan 17, 2022
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