A pre-commit hook that automatically hides your secrets

I just release the initial version of a pre-commit hook dedicated for home assistant. This hook will automatically create a dummy version of your secrets.yaml file!

What about .gitignore

I have .gitignore in /config/ folder to ignore files, folders, extensions to prevent the upload to GitHub

# MOST URGENT
secrets.yaml
esphome/secrets.yaml

# HIDDEN FILES
.bashrc
.bash_history
.gitconfig
.DS_Store
.ip_authenticated.yaml
.shopping_list.json

# FILES
core
google_assistant.json
ip_bans.yaml
icloud3-event-log.log
known_devices.yaml
package/json/calendar.json

# WILDCARD FILES
home-assistant.log*
storage.*

# EXTENSIONS
*.conf
*.csr
*.crt
*.db
*.jpg
*.key
*.log
*.pyc
*.pem
*.sqlite
*.sh
*.txt
*.xml

# HIDDEN FOLDERS
.cache/
.cloud/
.config/
.dbus/
.git/
.gnupg/
.local
.storage/
.ssh/
.vscode/

# FOLDERS
addons_config/
blueprints/
config/automation/test/
custom_components/
custom-cont-init.d/
custom-services.d/
data/
deps/
esphome/.esphome/
extensions/
glances/
image/
old/
other/
ozw_config/
ssh/
tts/
workspace/
www/