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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pre-commit to 1.0.0 #132

Closed
wants to merge 1 commit into from

Conversation

pyup-bot
Copy link
Collaborator

@pyup-bot pyup-bot commented Sep 7, 2017

There's a new version of pre-commit available.
You are currently using 0.18.3. I have updated it to 1.0.0

These links might come in handy: PyPI | Changelog | Repo

Changelog

1.0.0

=====
pre-commit will now be following semver. Thanks to all
of the contributors
that have helped us get this far!

Features

  • pre-commit's cache directory has moved from ~/.pre-commit to
    $XDG_CACHE_HOME/pre-commit (usually ~/.cache/pre-commit).
    • pre-commit clean now cleans up both the old and new directory.
    • If you were caching this directory in CI, you'll want to adjust the
      location.
    • 562 issue by nagromc.
    • 602 PR by asottile.
  • A new configuration format for .pre-commit-config.yaml is introduced which
    will enable future development.
    • The new format has a top-level map instead of a top-level list. The
      new format puts the hook repositories in a repos key.
    • Old list-based configurations will continue to be supported.
    • A command pre-commit migrate-config has been introduced to "upgrade"
      the configuration format to the new map-based configuration.
    • pre-commit autoupdate now automatically calls migrate-config.
    • In a later release, list-based configurations will issue a deprecation
      warning.
    • An example diff for upgrading a configuration:
+repos:
 -   repo: https://github.com/pre-commit/pre-commit-hooks
     sha: v0.9.2
     hooks:
  • 414 issue by asottile.
  • 610 PR by asottile.

Updating

  • Run pre-commit migrate-config to convert .pre-commit-config.yaml to the
    new map format.
  • Update any references from ~/.pre-commit to ~/.cache/pre-commit.

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 馃

@pyup-bot
Copy link
Collaborator Author

pyup-bot commented Sep 7, 2017

Closing this in favor of #133

@pyup-bot pyup-bot closed this Sep 7, 2017
@codingjoe codingjoe deleted the pyup-update-pre-commit-0.18.3-to-1.0.0 branch September 7, 2017 17:18
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

Successfully merging this pull request may close these issues.

None yet

1 participant