Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Some pre-commit hooks #25

@kk6

Description

@kk6

automatically upgrade syntax for newer versions of the language.
https://github.com/asottile/pyupgrade

automatically add trailing commas to calls and literals.
https://github.com/asottile/add-trailing-comma

An enterprise friendly way of detecting and preventing secrets in code.
https://github.com/Yelp/detect-secrets

Mirror of the yapf package for pre-commit
https://github.com/humitos/mirrors-docformatter

sample config

-   repo: https://github.com/asottile/pyupgrade
    rev: v1.8.0
    hooks:
    -   id: pyupgrade
        args: [--py36-plus]
-   repo: https://github.com/asottile/add-trailing-comma
    rev: v0.7.1
    hooks:
    -   id: add-trailing-comma
        args: [--py36-plus]
-   repo: https://github.com/Yelp/detect-secrets
    rev: 0.9.1
    hooks:
    -   id: detect-secrets
        args: ['--baseline', '.secrets.baseline']
        exclude: .*tests/.*|.*yelp/testing/.*|\.pre-commit-config\.yaml
- repo: git@github.com:humitos/mirrors-docformatter.git
  rev: v1.0
  hooks:
    - id: docformatter
      args: ['--in-place', '--wrap-summaries=80', '--wrap-descriptions=80', '--pre-summary-newline']

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions