diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.yml index afe63b7e..94ed9416 100644 --- a/.github/workflows/first-interaction.yml +++ b/.github/workflows/first-interaction.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: First Interaction - uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0 + uses: actions/first-interaction@1c4688942c71f71d4f5502a26ea67c331730fa4d # v3.1.0 with: repo_token: ${{ secrets.GITHUB_TOKEN }} issue_message: | diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index ff271f68..d6746455 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -21,12 +21,12 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 persist-credentials: false - - uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0 + - uses: super-linter/super-linter/slim@9e863354e3ff62e0727d37183162c4a88873df41 # v8.6.0 env: DEFAULT_BRANCH: main # VALIDATE_EDITORCONFIG: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a16f7436..c1653556 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,5 @@ --- -default_stages: [commit, push] +default_stages: [pre-commit, pre-push] default_language_version: python: python3 repos: @@ -8,18 +8,19 @@ repos: - id: identity - id: check-hooks-apply - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.5 + rev: v1.5.6 hooks: - id: forbid-tabs exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$ - id: remove-tabs exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict - id: check-executables-have-shebangs + - id: check-illegal-windows-names - id: check-json - id: check-merge-conflict - id: check-shebang-scripts-are-executable @@ -29,12 +30,17 @@ repos: args: [--allow-missing-credentials] - id: detect-private-key - id: end-of-file-fixer + - id: file-contents-sorter + name: run file-contents-sorter + description: sort the lines in specified files (defaults to alphabetical) + args: [--unique] + files: ^\.github/linters/codespell\.txt$ - id: fix-byte-order-marker - id: forbid-submodules - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.2 hooks: - id: codespell name: run codespell @@ -47,12 +53,12 @@ repos: # - id: shellcheck # - id: shfmt - repo: https://github.com/tcort/markdown-link-check - rev: v3.12.2 + rev: v3.14.2 hooks: - id: markdown-link-check args: [--config=.github/linters/mlc_config.json, -q] - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.41.0 + rev: v0.48.0 hooks: - id: markdownlint name: run markdownlint @@ -60,16 +66,16 @@ repos: args: [--config=.github/linters/.markdown-lint.yml] exclude: ^\.github/.*$ types: [markdown] - files: \.(md|mdown|markdown)$ + files: \.md$ - repo: https://github.com/adrienverge/yamllint - rev: v1.35.1 + rev: v1.38.0 hooks: - id: yamllint name: run yamllint description: Check YAML files with yamllint args: [--strict, -c=.github/linters/.yaml-lint.yml] types: [yaml] - files: \.(yml|yaml)$ + files: \.ya?ml$ - repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 hooks: @@ -91,12 +97,5 @@ repos: description: Check Shell scripts for correct syntax language: docker_image entry: koalaman/shellcheck:v0.9.0 -a - files: \.bash$|\.sh$ - require_serial: true - - id: sort-and-uniquify-codespell-wordlist - name: sort unique codespell.txt - description: Sort alphabetically and uniquify codespell.txt - entry: ./scripts/ci/pre-commit/sort-and-uniquify-codespell-wordlist.sh - language: system - files: ^\.github/linters/codespell\.txt$ + files: \.(bash|sh)$ require_serial: true diff --git a/MISSION_STATEMENT.md b/MISSION_STATEMENT.md index c1060b21..3b411648 100644 --- a/MISSION_STATEMENT.md +++ b/MISSION_STATEMENT.md @@ -31,7 +31,7 @@ The One Language development team is on its way to achieving the following: - Cross-platform compatibility - Support for different architectures and OSs - An internal web-development framework -- 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)) +- 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. - Easier maintenance - Static-type language (but it can auto-detect the type of your variables and values) - Faster performance diff --git a/scripts/ci/pre-commit/sort-and-uniquify-codespell-wordlist.sh b/scripts/ci/pre-commit/sort-and-uniquify-codespell-wordlist.sh deleted file mode 100755 index c5230db1..00000000 --- a/scripts/ci/pre-commit/sort-and-uniquify-codespell-wordlist.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -CODESPELL_WORDLIST="codespell.txt" -temp_file=$(mktemp) -sort <"$CODESPELL_WORDLIST" | uniq >"$temp_file" -cat "$temp_file" >"$CODESPELL_WORDLIST" -rm "$temp_file"