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

Add more pre-commit hooks #284

Open
icemac opened this issue Oct 2, 2024 · 1 comment
Open

Add more pre-commit hooks #284

icemac opened this issue Oct 2, 2024 · 1 comment
Assignees

Comments

@icemac
Copy link
Member

icemac commented Oct 2, 2024

The following hooks got deleted from this repo in #282.

    - repo: https://github.com/pre-commit/pre-commit-hooks
      rev: v4.6.0
      hooks:
          - id: trailing-whitespace
          - id: end-of-file-fixer
          - id: fix-encoding-pragma
            args: [--remove]
          - id: check-yaml
          - id: debug-statements
            language_version: python3
# If needed:
    - repo: local
      hooks:
          - id: rst
            name: rst
            entry: rst-lint --encoding utf-8
            exclude: ./doc/.*
            files: .rst
            language: python
            additional_dependencies: [pygments, restructuredtext_lint]
# This can deal with sphinx directives
    - repo: https://github.com/myint/rstcheck
      rev: "v6.2.4"
      hooks:
      - id: rstcheck
        args: [--ignore-messages, Duplicate implicit target.*]

Task: Find out what is helpful for all repos and add them back.

@dataflake
Copy link
Member

Other ideas from zopefoundation/Zope#1164

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

No branches or pull requests

2 participants