Skip to content

Commit e0e7271

Browse files
committed
The base commit
1 parent 9d499a4 commit e0e7271

Some content is hidden

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

43 files changed

+1173
-1447
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ 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+
site/

.pre-commit-config.yaml

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

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Code of Conduct
1+
## Code of Conduct
22

33
We adhere to the [Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/) version 2.1.

CONTRIBUTING.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# Contribution Guidelines
1+
## Contribution Guidelines
22

33
Thank you for considering contributing to this project!
44
Contributions are always welcome and appreciated.
55

6-
## How to Contribute
6+
### 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/CogitatorTech/helium/issues) to see if there is an issue you
99
would like to work on or if it has already been resolved.
1010

11-
### Reporting Bugs
11+
#### 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/CogitatorTech/helium/issues).
1414
2. Include information such as steps to reproduce the observed behavior and relevant logs or screenshots.
1515

16-
### Suggesting Features
16+
#### 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/CogitatorTech/helium/issues).
1919
2. Provide details about the feature, its purpose, and potential implementation ideas.
2020

2121
## Submitting Pull Requests
@@ -26,9 +26,9 @@ would like to work on or if it has already been resolved.
2626
> [!IMPORTANT]
2727
> It's assumed that by submitting a pull request, you agree to license your contributions under the project's license.
2828
29-
## Development Workflow
29+
### Development Workflow
3030

31-
### Prerequisites
31+
#### Prerequisites
3232

3333
Install GNU Make on your system if it's not already installed.
3434

@@ -39,22 +39,22 @@ sudo apt-get install make
3939

4040
- Use the `make install-deps` command to install the development dependencies.
4141

42-
### Code Style
42+
#### Code Style
4343

4444
- Use the `make format` command to format the code.
4545

46-
### Running Tests
46+
#### Running Tests
4747

4848
- Use the `make test` command to run the tests.
4949

50-
### Running Linters
50+
#### Running Linters
5151

5252
- Use the `make lint` command to run the linters.
5353

54-
### See Available Commands
54+
#### See Available Commands
5555

5656
- Run `make help` to see all available commands for managing different tasks.
5757

58-
## Code of Conduct
58+
### Code of Conduct
5959

60-
We adhere to the [Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/) version 2.1.
60+
We adhere to the project's [Code of Conduct](CODE_OF_CONDUCT.md).

0 commit comments

Comments
 (0)