Skip to content

Commit

Permalink
Change pre-commit rev: to master
Browse files Browse the repository at this point in the history
Thanks a ton for your work!

Implementing this means one less thing to keep up-to-date in the readme. Current example fails:

```
[INFO] Initializing environment for https://github.com/bwhmather/ssort.
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'checkout', '0.11.5')
return code: 1
expected return code: 0
stdout: (none)
stderr:
    error: pathspec '0.11.5' did not match any file(s) known to git
```

Whereas new example running, pre-commit automatically informs the user:

```
[WARNING] The 'rev' field of repo 'https://github.com/bwhmather/ssort' appears to be a mutable reference (moving tag / branch).  Mutable references are never updated after first install and are not supported.  See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.  Hint: `pre-commit autoupdate` often fixes this.
```

And `pre-commit autoupdate` indeed fixes it.
  • Loading branch information
MartinBernstorff committed Sep 19, 2022
1 parent 85ce691 commit b0e0ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Expand Up @@ -114,17 +114,17 @@ and registering ssort in your `.pre-commit-config.yaml`.
repos:
# ...
- repo: https://github.com/bwhmather/ssort
rev: 0.11.5
rev: master
hooks:
- id: ssort
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: master
hooks:
- id: isort
name: isort (python)
args: [--profile=black]
- repo: https://github.com/psf/black
rev: 22.1.0
rev: master
hooks:
- id: black
Expand Down

0 comments on commit b0e0ed6

Please sign in to comment.