Skip to content

Commit 4a3157c

Browse files
committed
update pre commit
1 parent a448d1f commit 4a3157c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LC_ALL=C
55
current_branch=$(git rev-parse --abbrev-ref HEAD)
66
echo "Running pre-commit hook on branch: $current_branch"
77
if [[ "$current_branch" == "main" ]]; then
8-
echo "Commit on main is now allowed. Please use a feature branch."
8+
echo "Commit on main is not allowed. Please use a feature branch."
99
exit 1
1010
fi
1111

notebooks/CommonDesignPatterns.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@
14521452
"source": [
14531453
"class OneOnly:\n",
14541454
" _singleton = None\n",
1455-
" # not the use of cls instead of cls to clarify the usage of _sigleton class variable\n",
1455+
" # not the use of cls instead of self to clarify the usage of _sigleton class variable\n",
14561456
" def __new__(cls, *args, **kwargs):\n",
14571457
" if not cls._singleton:\n",
14581458
" cls._singleton = super().__new__(cls, *args, **kwargs)\n",

0 commit comments

Comments
 (0)