GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pre-commit install instructions are incomplete · Issue #1360 · python/devguide

pre-commit install instructions are incomplete #1360

New issue
Copy link
New issue
Copy link
Closed
Closed
pre-commit install instructions are incomplete#1360
Copy link

Description

@encukou
encukou
opened on Jul 23, 2024
Issue body actions

The current pre-commit install instructions are listed before the “Compile and build” section:

$ pre-commit install --allow-missing-config
pre-commit installed at .git/hooks/pre-commit

This doesn't work before pre-commit itself is installed, and it can't be installed if one doesn't have Python yet.

Activity

  1. hugovk commented on Aug 15, 2024

    @hugovk
    hugovk
    on Aug 15, 2024
    Member
    More actions

    The instructions in full are:


    Install pre-commit as a Git hook

    To make sure your code is linted correctly, we recommend setting up pre-commit as a Git hook:

    $ pre-commit install --allow-missing-config
    pre-commit installed at .git/hooks/pre-commit
    

    Now pre-commit will run automatically on git commit.


    That pre-commit link is to https://pre-commit.com/#installation which shows a couple of ways to install pre-commit.

    I don't think we need to instruct people how to install Python itself: I think if someone wants to contribute to Python development, they will already have a Python installation, or know how to do so. And if nothing else, the front page of the devguide begins with instructions on how to build Python.

    Reacted by Zion Amsalem and Stan Ulbrych
  2. encukou
    closed this as completedon Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.