Skip to content

Commit 9ba2195

Browse files
committed
fix(pre-commit): disable .env generation hook
- Comment out settings-doc-dotenv hook that was overwriting user's .env file - This hook was regenerating .env template on every commit, removing user's bot token - Users can now safely set BOT_TOKEN in .env without it being overwritten
1 parent 8748bbd commit 9ba2195

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,15 @@ repos:
7575
language: system
7676
types: [file, python]
7777
pass_filenames: false
78-
- id: settings-doc-dotenv
79-
name: Generate settings-doc .env
80-
description: This hook generates a .env template from pydantic.BaseSettings
81-
to a file.
82-
entry: make docs-env
83-
language: system
84-
types: [file, python]
85-
pass_filenames: false
78+
# Temporarily disabled - overwrites user's .env file with template
79+
# - id: settings-doc-dotenv
80+
# name: Generate settings-doc .env
81+
# description: This hook generates a .env template from pydantic.BaseSettings
82+
# to a file.
83+
# entry: make docs-env
84+
# language: system
85+
# types: [file, python]
86+
# pass_filenames: false
8687
# Temporarily disabled - causes conflicts with end-of-file-fixer
8788
# TODO: Re-enable once we resolve the newline handling issue
8889
# - id: settings-doc-env-example

0 commit comments

Comments
 (0)