From 39fde8ca83b63a23cc6ecd77ceb0513c4a3329cb Mon Sep 17 00:00:00 2001 From: K Kollmann Date: Mon, 27 May 2024 16:56:55 +0200 Subject: [PATCH] refactor: restructure .gitignore Reformat .gitignore: consolidate/group entries, (re)use dir formatting from sample Python.gitignore, add comments. + Add .python-version for working with Pyenv. --- .gitignore | 77 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 40 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index dfdcd4cbe..dcdd91dfb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,30 +1,47 @@ +# Partially based on +# https://github.com/github/gitignore/blob/main/Python.gitignore + +# OS-specific +.DS_Store + +# IDEs +.idea +.project +.pydevproject +.sublime-project +.vscode + +# Python dev tooling +.mr.developer.cfg +.python-version + +# Cache, temp. files +__pycache__ +.cache/ *.py[cod] +*~ # C extensions *.so -# Packages -*.egg -*.egg-info -*.tar.gz -dist -build -eggs -.eggs -parts -bin -var -sdist -develop-eggs +# Distribution / packaging +build/ +develop-eggs/ +dist/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ .installed.cfg -lib -lib64 -__pycache__ -.cache/ -.vscode +*.egg -# Sublime -.sublime-project +# System misc. +bin +*.tar.gz # Installer logs pip-log.txt @@ -37,25 +54,11 @@ nosetests.xml # Translations *.mo -# Mr Developer -.mr.developer.cfg -.project -.pydevproject - -# Temp files -*~ - -# Pipy codes -.pypirc - -# Mac -.DS_Store - -# JetBrains -.idea - # Tests tests/media # Documentation docs/build/ + +# Publishing +.pypirc