pypa/hatch

Generate .gitignore with "hatch new"

開放

#2,229 建立於 2026年3月31日

 (1 則留言) (0 個反應) (0 位負責人)Python (240 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (4,451 顆星)
PR 合併指標
 (平均合併 71天 21小時) (30 天內合併 10 個 PR)

描述

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

貢獻者指南