Skip to content

Conversation

@williambdean
Copy link
Collaborator

GitHub offers gitignore templates for various languages. I've appended the one for Python

Super helpful function if you don't have it saved off already!

gitignore-template () {
        local language=${1:-$(gh api /gitignore/templates --jq '.[]' | 
fzf)} 
        if [ -z "$language" ]
        then
                return
        fi
        gh api /gitignore/templates/$language --jq '.source'
}

Then ran it:

gitignore-template Python >> .gitignore

And sorted the file manually

@williambdean williambdean changed the title append standard python gitignore to ours append standard python gitignore Feb 25, 2025
@williambdean williambdean merged commit 45eb560 into main Jun 18, 2025
4 checks passed
@williambdean williambdean deleted the append-github-python-ignore branch June 18, 2025 20:27
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 this pull request may close these issues.

2 participants