Skip to content

Commit

Permalink
refactor: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Nov 13, 2023
0 parents commit f6ac229
Show file tree
Hide file tree
Showing 594 changed files with 18,600 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

root = true

[*]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
end_of_line = lf

[{.gitmodules,**/git/**/config}]
indent_style = tab
indent_size = 8

[*.{md,sh,yaml,yml,toml}]
indent_size = 2
79 changes: 79 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<!--
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
SPDX-License-Identifier: CC-BY-SA-4.0
-->

---
name: Bug report
about: 'Report a problem in existing functionality'
title: ''
labels: 'P: default, T: bug'
assignees: ''
---

### Commitment

I have read the following resources:

- [ ] [How to ask questions The Smart Way](http://catb.org/esr/faqs/smart-questions.html)

- [ ] [Writing the perfect question](https://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/)

- [ ] [Question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/)

- [ ] [Could you please make my preference the defafault?](https://www.qubes-os.org/faq/#could-you-please-make-my-preference-the-default)

<!--
If it doesn't affect a large user base, you will have more chance to get our
attention by contributing to the project either helping on support, code or
money contribution than trying to deeply justify why you preferences should be
the default.
-->

If you haven't read at least two of the aforementioned resources, there is a
good chance your text will not be well written and therefore considered
invalid.

### Software version
<!--
You must specify as much information as possible in this category.
You can also specify the base commit of the project.
-->



### Brief summary
<!--
Keep it short but understandable. If it requires a bit more explanation, it is
okay to write some long paragraphs, but keep it on topic.
Explain how you would explain someone that doesn't know about computers, was
not by your side seeing your screen when it happened, not through your eyes,
but an outsider eyes.
-->



### Steps to reproduce
<!--
What should we do to get the same state as yours that is causing the bugs?
If you have installed extraneous software from other vendors or modified
settings manually, this should also be mentioned.
-->



### Expected behavior
<!--
What where you expecting to have happened? Why where you expecting that?
-->



### Actual behavior
<!--
What did really happen?
-->


.
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
#
# SPDX-License-Identifier: CC-BY-SA-4.0

---
blank_issues_enabled: false
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/feat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!--
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
SPDX-License-Identifier: CC-BY-SA-4.0
-->

---
name: Enhancement request
about: 'Suggest a new feature or an improvement of existing functionality'
title: ''
labels: 'P: default, T: feat'
assignees: ''
---

### Commitment

I confirm that I have read the following resources:

- [ ] [How to ask questions The Smart Way](http://catb.org/esr/faqs/smart-questions.html)

- [ ] [Writing the perfect question](https://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/)

- [ ] [Question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/)

- [ ] [Could you please make my preference the defafault?](https://www.qubes-os.org/faq/#could-you-please-make-my-preference-the-default)

<!--
If it doesn't affect a large user base, you will have more chance to get our
attention by contributing to the project either helping on support, code or
money contribution than trying to deeply justify why you preferences should be
the default.
-->

If you haven't read at least two of the aforementioned resources, there is a
good chance your text will not be well written and therefore considered
invalid.

### Current problem (if any)
<!--
If there is an existing issue, link it here.
-->



### Proposed solution
<!--
W
-->



### The value to a user, and who that user might be
<!--
If it is not an issue, why do you want this new feature to be added?
Example:
- User: will be able to safely ...
- Developer: will have an easy time ...
-->



.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
SPDX-License-Identifier: CC-BY-SA-4.0
-->

---
name: Question
about: 'Ask a question or request support'
title: ''
labels: 'T: question'
assignees: ''
---

### Commitment

I have read the following resources:

- [ ] [How to ask questions The Smart Way](http://catb.org/esr/faqs/smart-questions.html)

- [ ] [Writing the perfect question](https://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/)

- [ ] [Question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/)

- [ ] [Could you please make my preference the defafault?](https://www.qubes-os.org/faq/#could-you-please-make-my-preference-the-default)

<!--
If it doesn't affect a large user base, you will have more chance to get our
attention by contributing to the project either helping on support, code or
money contribution than trying to deeply justify why you preferences should be
the default.
-->

If you haven't read at least two of the aforementioned resources, there is a
good chance your text will not be well written and therefore considered
invalid.

### Question



.
54 changes: 54 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

---
name: Lint

# yamllint disable-line rule:truthy
on:
# yamllint disable-line rule:empty-values
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize

concurrency:
group: ci-${{ github.ref }}-1
cancel-in-progress: true

jobs:
lint:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Update package list
run: sudo apt-get -y update
- name: Install OS packages
# yamllint disable-line rule:line-length
run: sudo apt-get install -y python3-dev python3-pip shellcheck reuse
# gitlint is available on Debian but Ubuntu has an older version.
- name: Install pip packages
run: pip3 install salt-lint gitlint
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]

- name: Lint commits
# yamllint disable-line rule:line-length
run: |
if test "${{ github.event.before }}" = "${{ github.event.after }}" || test -z "${{ github.event.before }}"
then
gitlint --debug --commit "${{ github.event.after }}"
else
gitlint --debug --commits "${{ github.event.before }}..${{ github.event.after }}"
fi
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
#
# SPDX-License-Identifier: MIT

rpm_spec/*.spec
41 changes: 41 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# vim: ft=toml
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
#
# SPDX-License-Identifier: MIT

[general]
verbosity=3
ignore=body-is-missing
ignore-merge-commits=true
ignore-revert-commits=true
ignore-fixup-commits=false
ignore-fixup-amend-commits=false
ignore-squash-commits=false
fail-without-commits=true
regex-style-search=true
debug=false
contrib=contrib-title-conventional-commits

[title-max-length]
line-length=50

[title-min-length]
min-length=10

[title-must-not-contain-word]
words=wip

[body-max-line-length]
line-length=72

[body-min-length]
min-length=20

[body-is-missing]
ignore-merge-commits=false

[ignore-body-lines]
regex=(^Co-Authored-By)|(^Reported-by)|(^Signed-off-by)

[contrib-title-conventional-commits]
types = fix,feat,build,chore,ci,doc,style,refactor,perf,test
7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
#
# SPDX-License-Identifier: MIT

[submodule "salt/dotfiles"]
path = salt/dotfiles
url = ../dotfiles/
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

---
repos:
- repo: local
hooks:
- id: reuse
name: reuse
entry: reuse
args: [lint]
language: python
pass_filenames: false
description: Lint files to comply with the REUSE Specification
- id: salt-lint
name: salt-lint
entry: scripts/salt-lint.sh
language: script
pass_filenames: true
description: Lint Salt files
- id: shellcheck
name: shellcheck
entry: scripts/shell-lint.sh
language: script
pass_filenames: true
description: Lint Shellscripts
- id: gitlint
name: gitlint
language: python
entry: gitlint
args: [--staged, --msg-filename]
stages: [commit-msg]
description: Lint Git commits
Loading

0 comments on commit f6ac229

Please sign in to comment.