Skip to content

Commit 141bfd5

Browse files
committed
chore: added precommit hook
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent 2f983d6 commit 141bfd5

91 files changed

Lines changed: 677 additions & 700 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coderabbit.yaml

Lines changed: 54 additions & 54 deletions
Large diffs are not rendered by default.

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ NETWORK=<NETWORK> #eg testnet/local/previewnet/mainnet, default to testnet or lo
88
# TOKEN_ID=<TOKEN_ID> #optional
99
# TOKEN_NAME=<TOKEN_NAME> #optional
1010
# TOKEN_SYMBOL=<TOKEN_SYMBOL> #optional
11-
# TOPIC_ID=<TOPIC_ID> #optional
11+
# TOPIC_ID=<TOPIC_ID> #optional

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
# Documentation & legal
5050
/README.md @hiero-ledger/hiero-sdk-python-maintainers
51-
/LICENSE @hiero-ledger/hiero-sdk-python-maintainers @hiero-ledger/github-maintainers @hiero-ledger/tsc
51+
/LICENSE @hiero-ledger/hiero-sdk-python-maintainers @hiero-ledger/github-maintainers @hiero-ledger/tsc
5252

5353
# Git ignore definitions
5454
**/.gitignore @hiero-ledger/hiero-sdk-python-maintainers @hiero-ledger/github-maintainers

.github/ISSUE_TEMPLATE/01_good_first_issue_candidate.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ body:
2222
> This issue is not yet a confirmed Good First Issue.
2323
> It is being evaluated for suitability and may require
2424
> clarification or refinement before it is ready to be picked up.
25-
>
25+
>
2626
> **Please wait for maintainer confirmation before asking to be assigned.**
27-
>
27+
>
2828
> Maintainers and reviewers can read more about [Good First Issues](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/maintainers/good_first_issues_guidelines.md) and [Good First Issue Candidates](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/maintainers/good_first_issue_candidate_guidelines.md)
2929
3030
validations:
@@ -49,13 +49,13 @@ body:
4949
> [!IMPORTANT]
5050
> **This issue does not require prior domain knowledge.**
5151
>
52-
> - No Hiero or Hedera experience needed
53-
> - No distributed ledger background required
52+
> - No Hiero or Hedera experience needed
53+
> - No distributed ledger background required
5454
> - **Basic Python and Git are sufficient**
5555
5656
> [!NOTE]
57-
> ⏱️ **Typical time to complete:** 30–90 minutes (once setup is done)
58-
> 🧩 **Difficulty:** Small, well-contained change
57+
> ⏱️ **Typical time to complete:** 30–90 minutes (once setup is done)
58+
> 🧩 **Difficulty:** Small, well-contained change
5959
> 🎓 **Best for:** New contributors
6060
6161
**🏁 Completion**
@@ -114,7 +114,7 @@ body:
114114
115115
def run_demo():
116116
"""Monolithic token association demo."""
117-
print(f"🚀 Connecting to Hedera {network_name} network!")
117+
print(f"🚀 Connecting to Hedera {network_name} network!")
118118
client = Client(Network(network_name))
119119
operator_id = AccountId.from_string(os.getenv("OPERATOR_ID", ""))
120120
operator_key = PrivateKey.from_string(os.getenv("OPERATOR_KEY", ""))

.github/ISSUE_TEMPLATE/02_good_first_issue.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ body:
3333
> [!IMPORTANT]
3434
> **This issue does not require prior domain knowledge.**
3535
>
36-
> - No Hiero or Hedera experience needed
37-
> - No distributed ledger background required
36+
> - No Hiero or Hedera experience needed
37+
> - No distributed ledger background required
3838
> - **Basic Python and Git are sufficient**
3939
4040
> [!NOTE]
41-
> ⏱️ **Typical time to complete:** 30–90 minutes (once setup is done)
42-
> 🧩 **Difficulty:** Small, well-contained change
41+
> ⏱️ **Typical time to complete:** 30–90 minutes (once setup is done)
42+
> 🧩 **Difficulty:** Small, well-contained change
4343
> 🎓 **Best for:** New contributors
4444
4545
**🏁 Completion**
@@ -98,7 +98,7 @@ body:
9898
9999
def run_demo():
100100
"""Monolithic token association demo."""
101-
print(f"🚀 Connecting to Hedera {network_name} network!")
101+
print(f"🚀 Connecting to Hedera {network_name} network!")
102102
client = Client(Network(network_name))
103103
operator_id = AccountId.from_string(os.getenv("OPERATOR_ID", ""))
104104
operator_key = PrivateKey.from_string(os.getenv("OPERATOR_KEY", ""))

.github/ISSUE_TEMPLATE/05_advanced_issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ body:
101101
- [Office Hours](https://zoom-lfx.platform.linuxfoundation.org/meeting/99912667426?password=5b584a0e-1ed7-49d3-b2fc-dc5ddc888338) (Wednesdays, 2pm UTC)
102102
- [Discord #hiero-python-sdk](https://github.com/hiero-ledger/hiero-sdk-python/blob/main/docs/discord.md)
103103
validations:
104-
required: false
104+
required: false

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ body:
6969
- Linux
7070
- macOS
7171
- Windows
72-
- Other
72+
- Other

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ updates:
1414
directory: "/"
1515
schedule:
1616
interval: "daily"
17-
open-pull-requests-limit: 10
17+
open-pull-requests-limit: 10

.github/scripts/archive/gfi_notify_team.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ ${TEAM_ALIAS}
1010
1111
${message}
1212
13-
Repository: ${owner}/${repo}
13+
Repository: ${owner}/${repo}
1414
Issue: #${issue.number} - ${issue.title || '(no title)'}
1515
16-
Best Regards,
16+
Best Regards,
1717
Python SDK team`;
1818

1919
try {
@@ -103,4 +103,4 @@ module.exports = async ({ github, context }) => {
103103
} catch (err) {
104104
console.log('❌ Error:', err.message);
105105
}
106-
};
106+
};

.github/scripts/bot-assignment-check.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ get_permission() {
1717

1818
is_spam_user() {
1919
local spam_file=".github/spam-list.txt"
20-
20+
2121
# Check static spam list
2222
if [[ -f "$spam_file" ]]; then
2323
if grep -vE '^\s*#|^\s*$' "$spam_file" | grep -qxF "$ASSIGNEE"; then
@@ -40,14 +40,14 @@ issue_has_gfi() {
4040
# This allows mentors to be assigned to mentorship issues without consuming their assignment limit
4141
assignments_count() {
4242
local permission="${1:-none}"
43-
43+
4444
if [[ "$permission" == "triage" ]]; then
4545
echo "Triage user detected — excluding mentor-duty issues from count." >&2
4646
# For triage users, exclude issues with 'mentor-duty' label
4747
gh api "repos/${REPO}/issues?per_page=100&page=1" \
4848
-f assignee="${ASSIGNEE}" \
4949
-f state=open \
50-
--jq '.[]
50+
--jq '.[]
5151
| select(.pull_request == null)
5252
| select(any(.labels[]; .name == "mentor-duty") | not)
5353
| .number' | grep -c . || echo 0
@@ -67,11 +67,11 @@ post_comment() {
6767

6868
msg_spam_non_gfi() {
6969
cat <<EOF
70-
Hi @$ASSIGNEE, this is the Assignment Bot.
70+
Hi @$ASSIGNEE, this is the Assignment Bot.
7171
7272
:warning: **Assignment Restricted**
7373
74-
Your account currently has limited assignment privileges. You may only be assigned to issues labeled **Good First Issue**.
74+
Your account currently has limited assignment privileges. You may only be assigned to issues labeled **Good First Issue**.
7575
7676
**Current Restrictions:**
7777
- :white_check_mark: Can be assigned to 'Good First Issue' labeled issues (maximum 1 at a time)
@@ -148,30 +148,30 @@ if [[ "$SPAM" == "true" ]]; then
148148
post_comment "$(msg_spam_non_gfi)"
149149
exit 1
150150
fi
151-
151+
152152
echo "Issue has 'Good First Issue' label."
153-
153+
154154
# Spam users have a limit of 1 open assignment
155155
echo "Spam-listed user has $COUNT open assignments."
156-
156+
157157
if (( COUNT > 1 )); then
158158
echo "Spam user limit exceeded (Max 1 allowed). Revoking assignment."
159159
remove_assignee
160160
post_comment "$(msg_spam_limit_exceeded "$COUNT")"
161161
exit 1
162162
fi
163-
163+
164164
echo "Spam-listed user assignment valid. User has $COUNT assignment(s)."
165165
else
166166
# Normal users have a limit of 2 open assignments
167167
echo "Current open assignments count: $COUNT"
168-
168+
169169
if (( COUNT > 2 )); then
170170
echo "Limit exceeded (Max 2 allowed). Revoking assignment."
171171
remove_assignee
172172
post_comment "$(msg_normal_limit_exceeded)"
173173
exit 1
174174
fi
175-
175+
176176
echo "Assignment valid. User has $COUNT assignments."
177177
fi

0 commit comments

Comments
 (0)