File tree Expand file tree Collapse file tree 16 files changed +229
-53
lines changed
Expand file tree Collapse file tree 16 files changed +229
-53
lines changed Original file line number Diff line number Diff line change 1- # EditorConfig is awesome: https://EditorConfig.org
1+ # https://EditorConfig.org
22
3- # Top-most EditorConfig file
43root = true
54
6- # Global settings (applicable to all files unless overridden)
75[* ]
8- charset = utf-8 # Default character encoding
9- end_of_line = lf # Use LF for line endings (Unix-style)
10- indent_style = space # Use spaces for indentation
11- indent_size = 4 # Default indentation size
12- insert_final_newline = true # Make sure files end with a newline
13- trim_trailing_whitespace = true # Remove trailing whitespace
6+ charset = utf-8
7+ end_of_line = lf
8+ indent_style = space
9+ indent_size = 4
10+ insert_final_newline = true
11+ trim_trailing_whitespace = true
1412
15- # C files
1613[* .{c,h} ]
1714max_line_length = 100
1815
19- # Markdown files
2016[* .md ]
21- max_line_length = 120
22- trim_trailing_whitespace = false # Don ' t remove trailing whitespace in Markdown files
17+ max_line_length = 150
18+ trim_trailing_whitespace = false
2319
24- # Bash scripts
2520[* .sh ]
2621indent_size = 2
2722
28- # YAML files
2923[* .{yml,yaml} ]
3024indent_size = 2
31-
32-
Original file line number Diff line number Diff line change 5454
5555# Exclude files from language stats (GitHub Linguist)
5656* .ipynb linguist-vendored
57+ Makefile linguist-vendored
Original file line number Diff line number Diff line change 1+ github : [ habedi ]
Original file line number Diff line number Diff line change 1+ ---
2+ name : Bug report
3+ about : Create a report to help us improve
4+ title : ' '
5+ labels : bug
6+ assignees : ' '
7+
8+ ---
9+
10+ ** Describe the bug**
11+ A clear and concise description of what the bug is.
12+
13+ ** To Reproduce**
14+ Steps to reproduce the behavior:
15+
16+ 1 .
17+
18+ ** Expected behavior**
19+ A clear and concise description of what you expected to happen.
20+
21+ ** Logs**
22+ If applicable, add logs to help explain your problem.
23+
24+ ** Additional context**
25+ Add any other context about the problem here.
Original file line number Diff line number Diff line change 1+ blank_issues_enabled : false
2+ contact_links :
3+ - name : Discussions
4+ url : https://github.com/CogitatorTech/template-c-project/discussions
5+ about : Please ask and answer general questions here
Original file line number Diff line number Diff line change 1+ ---
2+ name : Feature request
3+ about : Suggest an idea for this project
4+ title : ' '
5+ labels : enhancement
6+ assignees : ' '
7+
8+ ---
9+
10+ ** Is your feature request related to a problem? Please describe.**
11+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [ ...]
12+
13+ ** Describe the solution you'd like**
14+ A clear and concise description of what you want to happen.
15+
16+ ** Describe alternatives you've considered**
17+ A clear and concise description of any alternative solutions or features you've considered.
18+
19+ ** Additional context**
20+ Add any other context or screenshots about the feature request here.
Original file line number Diff line number Diff line change 1+ name : Publish Doxygen Documentation
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ tags :
9+ - ' v*'
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ permissions :
16+ contents : write
17+
18+ jobs :
19+ deploy-docs :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout Repository
23+ uses : actions/checkout@v4
24+
25+ - name : Install Zig
26+ uses : goto-bus-stop/setup-zig@v2
27+ with :
28+ version : ' 0.15.2'
29+
30+ - name : Install System Dependencies
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y make
34+
35+ - name : Generate Documentation
36+ run : make docs
37+
38+ - name : Deploy to GitHub Pages
39+ uses : peaceiris/actions-gh-pages@v4
40+ with :
41+ github_token : ${{ secrets.GITHUB_TOKEN }}
42+ publish_dir : ./docs/html
43+ publish_branch : gh-pages
44+ user_name : ${{ github.actor }}
45+ user_email : ${{ github.actor }}@users.noreply.github.com
46+ commit_message : " docs: Deploy documentation from ${{ github.sha }} by ${{ github.actor }}"
Original file line number Diff line number Diff line change 1- name : Run Linters
1+ name : Run Linter Checks
22
33on :
4- workflow_dispatch : # Allow manual runs
4+ workflow_dispatch :
55 push :
6+ branches :
7+ - main
68 tags :
7- - ' v*' # Trigger on version tags
9+ - ' v*'
10+ paths-ignore :
11+ - ' **.md'
12+ - ' docs/**'
13+ pull_request :
14+ branches :
15+ - main
16+ paths-ignore :
17+ - ' **.md'
18+ - ' docs/**'
19+
20+ concurrency :
21+ group : ${{ github.workflow }}-${{ github.ref }}
22+ cancel-in-progress : true
23+
24+ permissions :
25+ contents : read
826
927jobs :
1028 lint :
2038 sudo apt-get install -y make
2139 make install-deps
2240
23- - name : Run Linters
41+ - name : Run Linter Checks
2442 run : make lint
Original file line number Diff line number Diff line change 1- name : Run Test
1+ name : Run Tests
22
33on :
4- workflow_dispatch : # Allow manual runs
4+ workflow_dispatch :
55 push :
6+ branches :
7+ - main
68 tags :
7- - ' v*' # Trigger on version tags
9+ - ' v*'
10+ paths-ignore :
11+ - ' **.md'
12+ - ' docs/**'
13+ pull_request :
14+ branches :
15+ - main
16+ paths-ignore :
17+ - ' **.md'
18+ - ' docs/**'
19+
20+ permissions :
21+ contents : read
822
923jobs :
10- build :
24+ test :
1125 runs-on : ubuntu-latest
1226
1327 steps :
Original file line number Diff line number Diff line change 1+ default_stages : [ pre-push ]
2+ fail_fast : false
3+ exclude : ' (^external/|^docs/)'
4+
5+ repos :
6+ - repo : https://github.com/pre-commit/pre-commit-hooks
7+ rev : v5.0.0
8+ hooks :
9+ - id : trailing-whitespace
10+ args : [ --markdown-linebreak-ext=md ]
11+ - id : end-of-file-fixer
12+ - id : mixed-line-ending
13+ - id : check-merge-conflict
14+ - id : check-added-large-files
15+ - id : detect-private-key
16+ - id : check-yaml
17+ - id : check-toml
18+ - id : check-json
19+ - id : check-docstring-first
20+ - id : pretty-format-json
21+ args : [ --autofix, --no-sort-keys ]
22+
23+ - repo : local
24+ hooks :
25+ - id : format
26+ name : Format Code
27+ entry : make format
28+ language : system
29+ pass_filenames : false
30+ stages : [ pre-commit ]
31+
32+ - id : lint
33+ name : Check Code Style
34+ entry : make lint
35+ language : system
36+ pass_filenames : false
37+ stages : [ pre-commit ]
38+
39+ - id : test
40+ name : Run Tests
41+ entry : make test
42+ language : system
43+ pass_filenames : false
You can’t perform that action at this time.
0 commit comments