Skip to content

Commit 5eeb96e

Browse files
committed
chore: cleanup files
1 parent f189515 commit 5eeb96e

File tree

7 files changed

+185
-27
lines changed

7 files changed

+185
-27
lines changed

.editorconfig

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 2
11+
indent_style = space
12+
insert_final_newline = true
13+
max_line_length = 120
14+
trim_trailing_whitespace = true
15+
16+
# 4 space indentation
17+
# don't check for max_line_length, rely on pylint
18+
[*.py]
19+
indent_style = space
20+
indent_size = 4
21+
max_line_length = unset
22+
23+
[Makefile]
24+
indent_style = tab
25+
max_line_length = unset
26+
27+
[*.mk]
28+
indent_style = tab
29+
max_line_length = unset
30+
31+
[setup.cfg]
32+
indent_style = tab
33+
34+
[*.{tf,tfvars}]
35+
indent_size = 2
36+
indent_style = space
37+
max_line_length = unset
38+
39+
[*.{yml,yaml}]
40+
indent_size = 2
41+
indent_style = space
42+
max_line_length = unset
43+
44+
# Fix for json files
45+
[*.json]
46+
max_line_length = unset
47+
48+
[*.md]
49+
trim_trailing_whitespace = false
50+
max_line_length = unset
51+
indent_size = unset
52+
53+
[*.sh]
54+
max_line_length = unset
55+
56+
[LICENSE]
57+
max_line_length = unset
58+
indent_style = unset
59+
indent_size = unset
60+
61+
# Fix for tox.ini
62+
[**/tox.ini]
63+
max_line_length = unset
64+
65+
[*.txt]
66+
max_line_length = unset
67+
68+
[.pylintrc]
69+
max_line_length = unset
70+
71+
[poetry.lock]
72+
max_line_length = unset
73+
74+
[*.go]
75+
indent_style = tab
76+
max_line_length = unset
77+
78+
[*.js]
79+
max_line_length = unset
80+
81+
[*.{bats,bash}]
82+
max_line_length = unset
83+
84+
[shared/bats-libs/**/*.*]
85+
indent_size = unset
86+
trim_trailing_whitespace = unset
87+
max_line_length = unset
88+
insert_final_newline = unset
89+
90+
[**/dist/index.js]
91+
max_line_length = unset
92+
indent_style = unset
93+
indent_size = unset
94+
insert_final_newline = unset

.github/workflows/aio.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: AllInOne
23

34
on:
@@ -23,34 +24,30 @@ jobs:
2324
runs-on: ${{ matrix.os }}
2425
steps:
2526
- name: asdf_plugin_test
26-
uses: asdf-vm/actions/plugin-test@v1
27+
uses: asdf-vm/actions/plugin-test@v3
2728
with:
2829
command: gitui --version
2930

3031
lint_and_tests:
3132
runs-on: ubuntu-latest
3233
steps:
3334
- name: Checkout code
34-
uses: actions/checkout@v2
35-
- name: Run the sh-checker
36-
uses: luizm/[email protected]
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
#SHELLCHECK_OPTS: -e SC1004 # Optional: exclude some shellcheck warnings.
40-
SHFMT_OPTS: -i 2 # Optional: pass arguments to shfmt.
35+
uses: actions/checkout@v4
36+
37+
- name: Install Tools with asdf
38+
uses: asdf-vm/actions/install@v3
39+
40+
- uses: actions/cache@v4
4141
with:
42-
sh_checker_comment: true
43-
- name: Install asdf
44-
run: |
45-
git clone https://github.com/asdf-vm/asdf.git $HOME/asdf
42+
path: ~/.cache/pre-commit
43+
key: pre-commit-3|${{ hashFiles('.pre-commit-config.yaml') }}
4644

47-
- name: Install bats
45+
- name: Run pre-commit checks
46+
shell: bash
4847
run: |
49-
sudo apt-get install bats
50-
bats --version
48+
pre-commit run --all-files
5149
5250
- name: Test plugin with bats
5351
run: |
54-
. $HOME/asdf/asdf.sh
5552
asdf plugin-add gitui $GITHUB_WORKSPACE
5653
bats test

.markdownlint-cli2.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
globs:
3+
- '**/*.md'
4+
- '!.venv*/**/*.md'
5+
- '!**/.tox/**/*.md'
6+
- '!**/.pytest_cache'
7+
- '!shared/bats-libs/**/*.md'
8+
- '!.github/actions/*/node_modules/**/*.md'

.markdownlint.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
# For a list of all rules, see here: https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
3+
4+
# Default state for all rules
5+
default: true
6+
7+
# MD013/line-length - Line length
8+
MD013: false
9+
10+
# MD024/Multiple headings with the same content
11+
MD024: false
12+
13+
# MD026/no-trailing-punctuation - Trailing punctuation in heading
14+
MD026: false
15+
16+
# MD033/no-inline-html - Inline HTML
17+
MD033: false
18+
19+
# MD037/Spaces inside emphasis markers
20+
MD037: false

.pre-commit-config.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.4.0
5+
hooks:
6+
- id: trailing-whitespace # Trims trailing whitespace
7+
exclude: ^shared/bats-libs/.*
8+
- id: check-yaml # Validates YAML files
9+
args:
10+
- --allow-multiple-documents
11+
- id: check-json # Validates JSON files
12+
- id: check-toml # Validates TOML files
13+
- id: check-xml # Validates XML files
14+
- id: check-added-large-files # Checks for files that are added to the repository that are larger than a threshold
15+
- id: check-case-conflict # Checks for files that would conflict in case-insensitive filesystems
16+
- id: check-merge-conflict # Checks for files that contain merge conflict strings
17+
- id: detect-private-key # Check for the existence of private keys
18+
- id: check-executables-have-shebangs # Checks that executables have shebangs
19+
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
20+
rev: 2.6.1
21+
hooks:
22+
- id: editorconfig-checker-system # Check editorconfig compliance
23+
alias: ec
24+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
25+
rev: 3.0.0
26+
hooks:
27+
- id: shellcheck # Shell scripts conform to shellcheck
28+
- id: shfmt # Check shell style with shfmt
29+
30+
- repo: https://github.com/DavidAnson/markdownlint-cli2
31+
rev: v0.12.1
32+
hooks:
33+
- id: markdownlint-cli2
34+
35+
- repo: https://github.com/adrienverge/yamllint.git
36+
rev: v1.35.1
37+
hooks:
38+
- id: yamllint
39+
args: [--config-data, relaxed, --no-warnings]
40+
41+
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
42+
rev: 0.2.3
43+
hooks:
44+
- id: yamlfmt
45+
args: [--mapping, '2', --sequence, '4', --offset, '2', --width, '150', --explicit_start]

.tool-versions

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
editorconfig-checker 2.6.0
2+
shfmt 3.8.0
3+
shellcheck 0.10.0
4+
bats 1.10.0
5+
pre-commit 3.6.2

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,3 @@ asdf plugin-add gitui https://github.com/looztra/asdf-gitui
2020
## Use
2121

2222
Check out the [asdf](https://github.com/asdf-vm/asdf) readme for instructions on how to install and manage versions of gitui.
23-
24-
## Source code
25-
26-
This source code has been generated with :
27-
28-
```bash
29-
cookiecutter --overwrite-if-exists --directory plugins/gitui --no-input https://github.com/looztra/cookiecutter-asdf-plugin
30-
31-
```
32-
33-

0 commit comments

Comments
 (0)