Shed creates a `.hypothesis/` directory when run
TomFryers opened this issue · 3 comments
TomFryers commented
This is a bit annoying. It doesn't seem to contain very much: just .hypothesis/unicode_data/13.0.0/charmap.json.gz
.
hugovk commented
This is HypothesisWorks/hypothesis#3140, fixed in hypothesis 6.28.0.
Try upgrading hypothesis? For example:
python -m pip install -U hypothesis
TomFryers commented
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 commented
@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.