Skip to content

Commit 1cc3453

Browse files
authored
Initial commit
0 parents  commit 1cc3453

14 files changed

+363
-0
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Unix-style newlines with a newline ending every file
2+
[*]
3+
charset = utf-8
4+
end_of_line = lf
5+
indent_size = 2
6+
indent_style = space
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.py]
11+
indent_style = space
12+
indent_size = 4
13+
14+
[*.sh]
15+
indent_style = space
16+
indent_size = 2
17+
switch_case_indent = true
18+
19+
# Tab indentation (no size specified)
20+
[Makefile]
21+
indent_style = tab

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @voxel51/aloha-shirts

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Rationale
2+
3+
<!-- Explain why you are making this change. Describe the problem. -->
4+
5+
## Changes
6+
7+
<!-- Describe the changes. -->
8+
9+
## Testing
10+
11+
<!-- Describe the way the changes were tested. -->
12+
13+
<!-- Optional Sections:
14+
15+
## Screenshots
16+
## To Do
17+
## Notes
18+
## Related
19+
20+
-->
21+
22+
<!-- Template for collapsed sections
23+
<details>
24+
<summary></summary>
25+
</details>
26+
-->
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: asdf dependabot update
3+
4+
on:
5+
schedule:
6+
# Runs at 8 AM ET / 12 PM UTC (non-DST)
7+
- cron: '0 12 * * 4'
8+
workflow_dispatch:
9+
10+
jobs:
11+
setup-asdf-matrix:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
matrix-combinations: ${{ steps.setup-matrix-combinations.outputs.matrix-combinations }}
15+
steps:
16+
- uses: actions/[email protected]
17+
- name: install asdf & tools
18+
uses: asdf-vm/actions/[email protected]
19+
- name: install asdf & tools
20+
uses: asdf-vm/actions/[email protected]
21+
- name: Update Tools
22+
id: setup-matrix-combinations
23+
uses: "voxel51/aloha-github-workflows/.github/actions/asdf-dependabot-update/generate-matrix@main"
24+
with:
25+
patch-only: "python,nodejs"
26+
27+
update-asdf:
28+
runs-on: ubuntu-latest
29+
needs: setup-asdf-matrix
30+
strategy:
31+
matrix: ${{ fromJson(needs.setup-asdf-matrix.outputs.matrix-combinations) }}
32+
steps:
33+
- uses: actions/[email protected]
34+
- name: Update Tools
35+
uses: "voxel51/aloha-github-workflows/.github/actions/asdf-dependabot-update/update@main"
36+
with:
37+
tool: ${{ matrix.tool }}
38+
tool-versions-file: .tool-versions
39+
version: ${{ matrix.version }}
40+
github-token: "${{ secrets.ORG_DEPENDABOT_UPDATE_PAT }}"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: pre-commit dependabot autoupdate
3+
4+
on:
5+
schedule:
6+
- cron: '0 12 * * 4'
7+
workflow_dispatch: {}
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
actions: write
13+
14+
jobs:
15+
autoupdate-pre-commit:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/[email protected]
19+
- name: install asdf & tools
20+
uses: asdf-vm/actions/[email protected]
21+
- name: Autoupdate Pre-commit Hooks
22+
uses: "voxel51/aloha-github-workflows/.github/actions/pre-commit-dependabot-autoupdate@main"
23+
with:
24+
github-token: "${{ secrets.ORG_DEPENDABOT_UPDATE_PAT }}"

.github/workflows/pre-commit.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: pre-commit
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
10+
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/[email protected]
15+
- name: Create python-version-file File
16+
uses: "voxel51/aloha-github-workflows/.github/actions/generate-version-file@main"
17+
id: generate-python-file
18+
with:
19+
tool-name: python
20+
- uses: actions/[email protected]
21+
with:
22+
python-version-file: ${{ steps.generate-python-file.outputs.version-file }}
23+
- name: Run pre-commit
24+
uses: "voxel51/aloha-github-workflows/.github/actions/pre-commit@main"

.markdownlint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
default: true
3+
4+
MD013: # Line Length
5+
code_blocks: false
6+
tables: false

.pre-commit-config.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v5.0.0
5+
hooks:
6+
- id: check-added-large-files
7+
- id: check-case-conflict
8+
- id: check-shebang-scripts-are-executable
9+
- id: check-yaml
10+
- id: end-of-file-fixer
11+
- id: mixed-line-ending
12+
- id: pretty-format-json
13+
exclude: '^package-lock\.json$'
14+
args:
15+
- --autofix
16+
- id: trailing-whitespace
17+
- repo: https://github.com/Lucas-C/pre-commit-hooks
18+
rev: v1.5.5
19+
hooks:
20+
- id: forbid-tabs
21+
- repo: https://github.com/codespell-project/codespell
22+
rev: v2.4.1
23+
hooks:
24+
- id: codespell
25+
- repo: https://github.com/igorshubovych/markdownlint-cli
26+
rev: v0.44.0
27+
hooks:
28+
- id: markdownlint
29+
- id: markdownlint-fix
30+
- repo: https://github.com/Yelp/detect-secrets
31+
rev: v1.5.0
32+
hooks:
33+
- id: detect-secrets
34+
# args:
35+
# - --exclude-secrets
36+
# - '(auth|secretName|secretKey)'
37+
- repo: https://github.com/adrienverge/yamllint
38+
rev: v1.37.0
39+
hooks:
40+
- id: yamllint
41+
entry: yamllint --config-file .yamllint.yaml
42+
- repo: https://github.com/rhysd/actionlint
43+
rev: v1.7.7
44+
hooks:
45+
- id: actionlint
46+
- repo: https://github.com/psf/black
47+
rev: 25.1.0
48+
hooks:
49+
- id: black
50+
language_version: python3.10
51+
- repo: https://github.com/pycqa/isort
52+
rev: 6.0.1
53+
hooks:
54+
- id: isort
55+
name: isort (python)
56+
# When set in `pyproject.toml`, the black profile argument may be removed
57+
args:
58+
- --profile black
59+
- repo: https://github.com/scop/pre-commit-shfmt
60+
rev: v3.11.0-1
61+
hooks:
62+
- id: shfmt
63+
args:
64+
- --write
65+
- --simplify
66+
- --case-indent
67+
- --indent=2
68+
- repo: https://github.com/shellcheck-py/shellcheck-py
69+
rev: v0.10.0.1
70+
hooks:
71+
- id: shellcheck
72+
- repo: https://github.com/compilerla/conventional-pre-commit
73+
rev: v4.1.0
74+
hooks:
75+
- id: conventional-pre-commit
76+
stages: [commit-msg]

.tool-versions

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pre-commit 4.2.0
2+
python 3.10.18
3+
shellcheck 0.10.0
4+
shfmt 3.12.0

0 commit comments

Comments
 (0)