Skip to content

Commit 83ab6e6

Browse files
Merge pull request #49 from recursivezero/main
🚀 Release: 2026-02-27
2 parents 334ed1d + 99c33c4 commit 83ab6e6

112 files changed

Lines changed: 12057 additions & 8564 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.

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.py text eol=lf
2+
*.js text eol=lf
3+
*.ts text eol=lf
4+
*.json text eol=lf
5+
*.md text eol=lf
6+
* text=auto eol=lf
7+

.githooks/pre-commit

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,39 @@
22

33
# Step 1: Validate branch naming convention
44
BRANCH_NAME=$(git symbolic-ref --short HEAD)
5-
echo "Current branch: $BRANCH_NAME"
6-
7-
# Define the branches to exclude
85
EXCLUDED_BRANCHES="develop main release refactor"
96

10-
# Check if the current branch is in the excluded list
117
for EXCLUDED_BRANCH in $EXCLUDED_BRANCHES; do
128
if [ "$BRANCH_NAME" = "$EXCLUDED_BRANCH" ]; then
13-
echo "Skipping pre-commit checks for branch: $BRANCH_NAME"
9+
echo "Skipping pre-commit checks for branch: $BRANCH_NAME"
1410
exit 0
1511
fi
1612
done
1713

18-
# Pre-commit checks (e.g., linting, testing, etc.)
19-
echo "Running pre-commit checks for branch: $BRANCH_NAME"
20-
14+
# Validate Naming Pattern
2115
echo "$BRANCH_NAME" | grep -Eq '^(feature|bugfix|hotfix|task)/[A-Za-z]+-[0-9]+'
2216
if [ $? -ne 0 ]; then
23-
echo "Error: Branch name '$BRANCH_NAME' is invalid."
24-
echo "Use a valid branch naming convention, e.g., feature|bugfix|hotfix|task/XYZ-123."
17+
echo "Error: Branch name '$BRANCH_NAME' is invalid."
18+
echo "Use: feature|bugfix|hotfix|task/PROJECT-123"
2519
exit 1
2620
fi
2721

28-
npm run lint
22+
# Step 2: Frontend Checks
23+
echo "🚀 Running Frontend checks..."
24+
cd frontend && npm run lint
2925
if [ $? -ne 0 ]; then
30-
echo "Lint failed. Commit aborted."
26+
echo "❌ Frontend checks failed. Commit aborted."
3127
exit 1
3228
fi
29+
cd ..
3330

34-
npm run build
31+
# Step 3: Backend Checks (Poetry)
32+
echo "🐍 Running Backend checks..."
33+
cd backend && poetry run lint
3534
if [ $? -ne 0 ]; then
36-
echo "Build failed. Commit aborted."
35+
echo "❌ Backend lint failed. Commit aborted."
3736
exit 1
3837
fi
38+
cd ..
39+
40+
echo "✨ All checks passed! Committing code..."

.githooks/prepare-commit-msg

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#!/bin/bash
2-
3-
# This script prepends the branch name to the commit message
4-
# Skip certain branches (configurable)
5-
if [ -z "$BRANCHES_TO_SKIP" ]; then
6-
BRANCHES_TO_SKIP="master develop release refactor"
7-
fi
8-
9-
BRANCH_NAME=$(git symbolic-ref --short HEAD)
10-
BRANCH_NAME="${BRANCH_NAME##*/}"
11-
12-
BRANCH_EXCLUDED=$(printf "%s\n" $BRANCHES_TO_SKIP | grep -c "^$BRANCH_NAME$")
13-
BRANCH_IN_COMMIT=$(grep -c "\[$BRANCH_NAME\]" "$1")
14-
15-
if [ -n "$BRANCH_NAME" ] && ! [ $BRANCH_EXCLUDED -eq 1 ] && ! [ $BRANCH_IN_COMMIT -ge 1 ]; then
16-
sed -i.bak -e "1s/^/[$BRANCH_NAME]: /" "$1"
17-
fi
1+
#!/bin/bash
2+
3+
# This script prepends the branch name to the commit message
4+
# Skip certain branches (configurable)
5+
if [ -z "$BRANCHES_TO_SKIP" ]; then
6+
BRANCHES_TO_SKIP="master develop release refactor"
7+
fi
8+
9+
BRANCH_NAME=$(git symbolic-ref --short HEAD)
10+
BRANCH_NAME="${BRANCH_NAME##*/}"
11+
12+
BRANCH_EXCLUDED=$(printf "%s\n" $BRANCHES_TO_SKIP | grep -c "^$BRANCH_NAME$")
13+
BRANCH_IN_COMMIT=$(grep -c "\[$BRANCH_NAME\]" "$1")
14+
15+
if [ -n "$BRANCH_NAME" ] && ! [ $BRANCH_EXCLUDED -eq 1 ] && ! [ $BRANCH_IN_COMMIT -ge 1 ]; then
16+
sed -i.bak -e "1s/^/[$BRANCH_NAME]: /" "$1"
17+
fi

.github/CODEOWNERS

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Lines starting with '#' are comments
2-
3-
* @recursivezero
4-
5-
## You can also use email addresses if you prefer
6-
7-
docs/* recursivezero@outlook.com
1+
# Lines starting with '#' are comments
2+
3+
* @recursivezero
4+
5+
## You can also use email addresses if you prefer
6+
7+
docs/* recursivezero@outlook.com
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
title: "[General] "
2-
labels: ["General Introduction"]
3-
body:
4-
- type: markdown
5-
attributes:
6-
value: |
7-
introduce yourself!
8-
9-
- type: textarea
10-
id: improvements
11-
attributes:
12-
label: Top 3 improvements
13-
description: "What are the top 3 improvements we could make to this project?"
14-
value: |
15-
1.
16-
2.
17-
3.
18-
...
19-
render: bash
20-
validations:
21-
required: true
22-
23-
- type: textarea
24-
id: has-id
25-
attributes:
26-
label: write us suggestion
27-
description: A description about suggestions to help you
28-
validations:
29-
required: true
30-
31-
- type: checkboxes
32-
id: terms
33-
attributes:
34-
label: Before submitting
35-
description: By submitting this announcement, you agree to follow our [Contributing Guidelines](https://github.com/recursivezero/tz-fabric/blob/main/.github/CONTRIBUTING.md).
36-
options:
37-
- label: I've made research efforts and searched the documentation
38-
required: true
1+
title: "[General] "
2+
labels: ["General Introduction"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
introduce yourself!
8+
9+
- type: textarea
10+
id: improvements
11+
attributes:
12+
label: Top 3 improvements
13+
description: "What are the top 3 improvements we could make to this project?"
14+
value: |
15+
1.
16+
2.
17+
3.
18+
...
19+
render: bash
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: has-id
25+
attributes:
26+
label: write us suggestion
27+
description: A description about suggestions to help you
28+
validations:
29+
required: true
30+
31+
- type: checkboxes
32+
id: terms
33+
attributes:
34+
label: Before submitting
35+
description: By submitting this announcement, you agree to follow our [Contributing Guidelines](https://github.com/recursivezero/tz-fabric/blob/main/.github/CONTRIBUTING.md).
36+
options:
37+
- label: I've made research efforts and searched the documentation
38+
required: true
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
title: "[Idea]"
2-
labels: ["Share your Idea"]
3-
body:
4-
- type: textarea
5-
id: idea
6-
attributes:
7-
label: Idea highlight
8-
description: "What are the idea we could make to this project?"
9-
value:
10-
render: bash
11-
validations:
12-
required: true
13-
14-
- type: dropdown
15-
id: improvement
16-
attributes:
17-
label: Which area of this project could be most improved?
18-
options:
19-
- Documentation
20-
- Pull request review time
21-
- Bug fix time
22-
- Enhancement
23-
validations:
24-
required: true
25-
26-
- type: input
27-
id: id
28-
attributes:
29-
label: email
30-
description: your contact email
31-
validations:
32-
required: false
33-
34-
- type: checkboxes
35-
id: terms
36-
attributes:
37-
label: Before submitting
38-
description: By submitting this idea, you agree to follow our [Contributing Guidelines](https://github.com/recursivezero/tz-fabric/blob/main/.github/CONTRIBUTING.md).
39-
options:
40-
- label: I've made research efforts and searched the documentation
41-
required: true
42-
43-
- type: markdown
44-
attributes:
45-
value: |
46-
### Thank you
47-
_we will contact you_ **soon**
1+
title: "[Idea]"
2+
labels: ["Share your Idea"]
3+
body:
4+
- type: textarea
5+
id: idea
6+
attributes:
7+
label: Idea highlight
8+
description: "What are the idea we could make to this project?"
9+
value:
10+
render: bash
11+
validations:
12+
required: true
13+
14+
- type: dropdown
15+
id: improvement
16+
attributes:
17+
label: Which area of this project could be most improved?
18+
options:
19+
- Documentation
20+
- Pull request review time
21+
- Bug fix time
22+
- Enhancement
23+
validations:
24+
required: true
25+
26+
- type: input
27+
id: id
28+
attributes:
29+
label: email
30+
description: your contact email
31+
validations:
32+
required: false
33+
34+
- type: checkboxes
35+
id: terms
36+
attributes:
37+
label: Before submitting
38+
description: By submitting this idea, you agree to follow our [Contributing Guidelines](https://github.com/recursivezero/tz-fabric/blob/main/.github/CONTRIBUTING.md).
39+
options:
40+
- label: I've made research efforts and searched the documentation
41+
required: true
42+
43+
- type: markdown
44+
attributes:
45+
value: |
46+
### Thank you
47+
_we will contact you_ **soon**

.github/FUNDING.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# These are supported funding model platforms
2-
# Available funding options of the project. You can specify up to four [sponsored GitHub accounts](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors),
3-
# up to four custom URLs, and one account per supported external funding platform.
4-
5-
github: recursivezero
1+
# These are supported funding model platforms
2+
# Available funding options of the project. You can specify up to four [sponsored GitHub accounts](https://docs.github.com/en/sponsors/receiving-sponsorships-through-github-sponsors),
3+
# up to four custom URLs, and one account per supported external funding platform.
4+
5+
github: recursivezero

0 commit comments

Comments
 (0)