Meriam van Os
10/18/2024, 2:34 PMconda create --name nf-core python=3.12 nf-core nextflow
conda activate nf-core
pre-commit install
pre-commit --version
pre-commit 4.0.1
And then I use 4.0.1 as the tag in my .pre-commit-config.yaml file, but get the following error
git commit
[INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
An unexpected error has occurred: CalledProcessError: command: ('/home/vanme090/.conda/envs/nf-core2/libexec/git-core/git', 'checkout', 'v4.0.1')
return code: 1
stdout: (none)
stderr:
error: pathspec 'v4.0.1' did not match any file(s) known to git
when I check
git ls-remote --tags https://github.com/pre-commit/mirrors-prettier
There's indeed no 4.0.1 tagmashehu
10/18/2024, 2:36 PMMeriam van Os
10/18/2024, 2:36 PMrepos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "4.0.1"
hooks:
- id: prettiermashehu
10/18/2024, 2:38 PMMeriam van Os
10/18/2024, 2:41 PMMeriam van Os
10/18/2024, 3:13 PMmashehu
10/18/2024, 3:44 PM