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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local pre-commit difficult to use; upgrade to using remote repos #694

Open
zwimer opened this issue Nov 5, 2024 · 0 comments · May be fixed by #695
Open

Local pre-commit difficult to use; upgrade to using remote repos #694

zwimer opened this issue Nov 5, 2024 · 0 comments · May be fixed by #695

Comments

@zwimer
Copy link

zwimer commented Nov 5, 2024

It would be a lot easier to use pre-commit if it used remote repos instead of local. For example:

repos:
-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v2.3.0
    hooks:
    -   id: check-yaml
    -   id: end-of-file-fixer
    -   id: trailing-whitespace
-   repo: https://github.com/psf/black
    rev: 22.10.0
    hooks:
    -   id: black

Instead of something like:

repos:
  - repo: local
    hooks:
      - id: bandit
        name: bandit
        entry: bandit
        language: system
        types: [python]
        require_serial: true
        args: ["-c", "bandit.yml"]
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 a pull request may close this issue.

1 participant