Skip to content

Commit f92a92c

Browse files
committed
The base commit
1 parent 965d5df commit f92a92c

Some content is hidden

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

46 files changed

+2523
-1435
lines changed

.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# EditorConfig is awesome: https://EditorConfig.org
2-
31
# Top-most EditorConfig file
42
root = true
53

@@ -29,4 +27,6 @@ indent_size = 2
2927
[*.{yml,yaml}]
3028
indent_size = 2
3129
32-
30+
# Python files
31+
[*.py]
32+
max_line_length = 100

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [ habedi ]

.github/workflows/codecov.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish API Documentation
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
deploy-docs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
20+
- name: Install Zig
21+
uses: goto-bus-stop/setup-zig@v2
22+
with:
23+
version: '0.14.1'
24+
25+
- name: Install System Dependencies
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y make
29+
30+
- name: Generate Documentation
31+
run: make docs
32+
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v4
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./docs/api
38+
publish_branch: gh-pages
39+
user_name: 'github-actions[bot]'
40+
user_email: 'github-actions[bot]@users.noreply.github.com'
41+
commit_message: "docs: Deploy documentation from ${{ github.sha }}"

.github/workflows/lints.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
1-
name: Run Linters
1+
name: Run Linter Checks
22

33
on:
4-
workflow_dispatch:
5-
pull_request:
4+
push:
65
branches:
76
- main
87
tags:
98
- 'v*'
109

10+
pull_request:
11+
branches:
12+
- main
13+
14+
workflow_dispatch:
15+
1116
permissions:
1217
contents: read
1318

1419
jobs:
15-
lint:
20+
lints:
1621
runs-on: ubuntu-latest
1722

1823
steps:
1924
- name: Checkout Code
2025
uses: actions/checkout@v4
2126

27+
- name: Install Zig
28+
uses: goto-bus-stop/setup-zig@v2
29+
with:
30+
version: '0.14.1'
31+
2232
- name: Install Dependencies
2333
run: |
2434
sudo apt-get update
2535
sudo apt-get install -y make
26-
make install-deps
2736
2837
- name: Run Linters
2938
run: make lint

.github/workflows/tests.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
1-
name: Run Test
1+
name: Run Tests
22

33
on:
4-
workflow_dispatch:
5-
pull_request:
4+
push:
65
branches:
76
- main
87
tags:
98
- 'v*'
109

10+
pull_request:
11+
branches:
12+
- main
13+
14+
workflow_dispatch:
15+
1116
permissions:
1217
contents: read
1318

1419
jobs:
15-
build:
20+
tests:
1621
runs-on: ubuntu-latest
1722

1823
steps:
1924
- name: Checkout Repository
2025
uses: actions/checkout@v4
2126

27+
- name: Install Zig
28+
uses: goto-bus-stop/setup-zig@v2
29+
with:
30+
version: '0.14.1'
31+
2232
- name: Install Dependencies
2333
run: |
2434
sudo apt-get update
2535
sudo apt-get install -y make
26-
make install-deps
2736
2837
- name: Run the Tests
2938
run: make test

.gitignore

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,16 @@ temp/
9191

9292
# Dependency lock files (optional)
9393
poetry.lock
94+
uv.lock
9495

9596
# Additional files and directories to ignore (put below)
96-
docs/api/
9797
*_output.txt
98-
98+
public/
99+
docs/api/
100+
*.o
101+
*.a
102+
*.so
103+
*.dylib
104+
*.dll
105+
*.exe
106+
latest

.pre-commit-config.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
default_stages: [ pre-push ]
2+
fail_fast: false
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v5.0.0
7+
hooks:
8+
- id: trailing-whitespace
9+
args: [ --markdown-linebreak-ext=md ]
10+
- id: end-of-file-fixer
11+
- id: mixed-line-ending
12+
- id: check-merge-conflict
13+
- id: check-added-large-files
14+
- id: detect-private-key
15+
- id: check-yaml
16+
- id: check-toml
17+
- id: check-json
18+
- id: check-docstring-first
19+
- id: pretty-format-json
20+
args: [ --autofix, --no-sort-keys ]
21+
22+
- repo: local
23+
hooks:
24+
- id: format
25+
name: Format the code
26+
entry: make format
27+
language: system
28+
pass_filenames: false
29+
stages: [ pre-commit ]
30+
31+
- id: lint
32+
name: Check code style
33+
entry: make lint
34+
language: system
35+
pass_filenames: false
36+
stages: [ pre-commit ]
37+
38+
- id: test
39+
name: Run the tests
40+
entry: make test
41+
language: system
42+
pass_filenames: false

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ Contributions are always welcome and appreciated.
55

66
## How to Contribute
77

8-
Please check the [issue tracker](https://github.com/habedi/template-zig-project/issues) to see if there is an issue you
8+
Please check the [issue tracker](https://github.com/habedi/ordered/issues) to see if there is an issue you
99
would like to work on or if it has already been resolved.
1010

1111
### Reporting Bugs
1212

13-
1. Open an issue on the [issue tracker](https://github.com/habedi/template-zig-project/issues).
13+
1. Open an issue on the [issue tracker](https://github.com/habedi/ordered/issues).
1414
2. Include information such as steps to reproduce the observed behavior and relevant logs or screenshots.
1515

1616
### Suggesting Features
1717

18-
1. Open an issue on the [issue tracker](https://github.com/habedi/template-zig-project/issues).
18+
1. Open an issue on the [issue tracker](https://github.com/habedi/ordered/issues).
1919
2. Provide details about the feature, its purpose, and potential implementation ideas.
2020

2121
## Submitting Pull Requests

0 commit comments

Comments
 (0)