pypa/hatch

Generate .gitignore with "hatch new"

Open

#2.229 geöffnet am 31. März 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (240 Forks)batch import
enhancementgood first issue

Repository-Metriken

Stars
 (4.451 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 41T 22h) (20 gemergte PRs in 30 T)

Beschreibung

Description

When creating a new project with hatch new, create a default .gitignore file.

A very minimal .gitignore can be:

__pycache__/
dist/

Use case/motivation

A well-prepared standard .gitignore that helps a hatch user getting start quicker with Python development with Git.

More can be added manually by the user to fits their needs, but at least the .gitignore is there to edit.

Related issues

This isssue is a reopen of https://github.com/pypa/hatch/issues/667

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Contributor Guide