This PR fixes 2 issues when setting up the dev environment:
After running make install-deps I got:
pre-commit install
make: pre-commit: No such file or directory
According to pre-commit doc, pre-commit should be added to requirements-dev.txt
Adding pre-commit to requirements-dev.txt fixed this issue.
After running make tests I got this error:
File "/Users/lior.h/git/config-client/venv/lib/python3.11/site-packages/coverage/files.py", line 344, in _glob_to_regex
raise ConfigError(f"File pattern can't include {m[0]!r}")
coverage.exceptions.ConfigError: File pattern can't include '**/**'
make: *** [tests] Error 1
According to this SO answer seems that in this version of coverage.py, there was a change to pattern matching that caused the above error.
I fixed the patterns and tested that the coverage works as expected.
Hey,
This PR fixes 2 issues when setting up the dev environment:
make install-deps
I got:According to pre-commit doc,
pre-commit
should be added torequirements-dev.txt
Addingpre-commit
torequirements-dev.txt
fixed this issue.make tests
I got this error:According to this SO answer seems that in this version of coverage.py, there was a change to pattern matching that caused the above error. I fixed the patterns and tested that the coverage works as expected.