Skip to content

Commit 9ce2207

Browse files
authored
Clean up links, pre-commit, scripts, comments (#603)
1 parent 204a691 commit 9ce2207

5 files changed

Lines changed: 20 additions & 28 deletions

File tree

.github/workflows/first-interaction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: First Interaction
21-
uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0
21+
uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0
2222
with:
2323
repo_token: ${{ secrets.GITHUB_TOKEN }}
2424
issue_message: |

.github/workflows/super-linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
24-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525
with:
2626
# Full git history is needed to get a proper list of changed files within `super-linter`
2727
fetch-depth: 0
2828
persist-credentials: false
29-
- uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0
29+
- uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0
3030
env:
3131
DEFAULT_BRANCH: main
3232
# VALIDATE_EDITORCONFIG: true

.pre-commit-config.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
default_stages: [commit, push]
2+
default_stages: [pre-commit, pre-push]
33
default_language_version:
44
python: python3
55
repos:
@@ -8,18 +8,19 @@ repos:
88
- id: identity
99
- id: check-hooks-apply
1010
- repo: https://github.com/Lucas-C/pre-commit-hooks
11-
rev: v1.5.5
11+
rev: v1.5.6
1212
hooks:
1313
- id: forbid-tabs
1414
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
1515
- id: remove-tabs
1616
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.6.0
18+
rev: v6.0.0
1919
hooks:
2020
- id: check-added-large-files
2121
- id: check-case-conflict
2222
- id: check-executables-have-shebangs
23+
- id: check-illegal-windows-names
2324
- id: check-json
2425
- id: check-merge-conflict
2526
- id: check-shebang-scripts-are-executable
@@ -29,12 +30,17 @@ repos:
2930
args: [--allow-missing-credentials]
3031
- id: detect-private-key
3132
- id: end-of-file-fixer
33+
- id: file-contents-sorter
34+
name: run file-contents-sorter
35+
description: sort the lines in specified files (defaults to alphabetical)
36+
args: [--unique]
37+
files: ^\.github/linters/codespell\.txt$
3238
- id: fix-byte-order-marker
3339
- id: forbid-submodules
3440
- id: mixed-line-ending
3541
- id: trailing-whitespace
3642
- repo: https://github.com/codespell-project/codespell
37-
rev: v2.3.0
43+
rev: v2.4.2
3844
hooks:
3945
- id: codespell
4046
name: run codespell
@@ -47,29 +53,29 @@ repos:
4753
# - id: shellcheck
4854
# - id: shfmt
4955
- repo: https://github.com/tcort/markdown-link-check
50-
rev: v3.12.2
56+
rev: v3.14.2
5157
hooks:
5258
- id: markdown-link-check
5359
args: [--config=.github/linters/mlc_config.json, -q]
5460
- repo: https://github.com/igorshubovych/markdownlint-cli
55-
rev: v0.41.0
61+
rev: v0.48.0
5662
hooks:
5763
- id: markdownlint
5864
name: run markdownlint
5965
description: Check Markdown files with markdownlint
6066
args: [--config=.github/linters/.markdown-lint.yml]
6167
exclude: ^\.github/.*$
6268
types: [markdown]
63-
files: \.(md|mdown|markdown)$
69+
files: \.md$
6470
- repo: https://github.com/adrienverge/yamllint
65-
rev: v1.35.1
71+
rev: v1.38.0
6672
hooks:
6773
- id: yamllint
6874
name: run yamllint
6975
description: Check YAML files with yamllint
7076
args: [--strict, -c=.github/linters/.yaml-lint.yml]
7177
types: [yaml]
72-
files: \.(yml|yaml)$
78+
files: \.ya?ml$
7379
- repo: https://github.com/pocc/pre-commit-hooks
7480
rev: v1.3.5
7581
hooks:
@@ -91,12 +97,5 @@ repos:
9197
description: Check Shell scripts for correct syntax
9298
language: docker_image
9399
entry: koalaman/shellcheck:v0.9.0 -a
94-
files: \.bash$|\.sh$
95-
require_serial: true
96-
- id: sort-and-uniquify-codespell-wordlist
97-
name: sort unique codespell.txt
98-
description: Sort alphabetically and uniquify codespell.txt
99-
entry: ./scripts/ci/pre-commit/sort-and-uniquify-codespell-wordlist.sh
100-
language: system
101-
files: ^\.github/linters/codespell\.txt$
100+
files: \.(bash|sh)$
102101
require_serial: true

MISSION_STATEMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The One Language development team is on its way to achieving the following:
3131
- Cross-platform compatibility
3232
- Support for different architectures and OSs
3333
- An internal web-development framework
34-
- Easier debugging: Programmers mostly spend their time on reading and debugging their code, which is a time wasted at the expense of writing the actual codes ([you can see a discussion about this subject here](https://www.quora.com/It-is-true-that-developers-spend-most-of-their-time-reading-code-than-writing-code))
34+
- Easier debugging: Programmers mostly spend their time on reading and debugging their code, which is a time wasted at the expense of writing the actual code.
3535
- Easier maintenance
3636
- Static-type language (but it can auto-detect the type of your variables and values)
3737
- Faster performance

scripts/ci/pre-commit/sort-and-uniquify-codespell-wordlist.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)