diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4f246d1 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 + +[*.gd] +indent_style = tab +max_line_length = 100 + +[*.md] +indent_style = space +max_line_length = 80 diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index a2e8673..4a66ddb 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -6,6 +6,11 @@ on: branches: - main +# Cancel any ongoing previous run if a PR is updated +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: pre-commit: name: Linting and Formatting diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index fd7c93b..1106ad9 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -5,6 +5,11 @@ on: types: - published +# Cancel any ongoing previous run if the job is re-triggered +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + permissions: contents: read pages: write diff --git a/.github/workflows/godot-asset-library.yaml b/.github/workflows/godot-asset-library.yaml index 26406e0..252408a 100644 --- a/.github/workflows/godot-asset-library.yaml +++ b/.github/workflows/godot-asset-library.yaml @@ -3,6 +3,11 @@ on: types: - published +# Cancel any ongoing previous run if the job is re-triggered +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + name: Push to Godot Asset Library jobs: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d667b94..ebc2090 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,16 +2,18 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/Scony/godot-gdscript-toolkit - # Use this commit from the master branch until the next stable release with - # - rev: f836958a4487e31e3c5ab35c57c7a2128b7e2303 + rev: 4.3.3 hooks: - id: gdlint - id: gdformat +exclude: | + (?x)^( + addons/(.*) + )$ diff --git a/README.md b/README.md index 20d611f..826d19b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ # Moddable Pong -This mini moddable game project by [Endless OS Foundation](https://endlessos.org) is intended to help ease the learning curve into Godot. +This mini moddable game project by [Endless OS +Foundation](https://endlessos.org) is intended to help ease the learning curve +into Godot. -This sample project allows learners to engage with game creation concepts, applying various modifications to the game itself, all without reading or writing any code. +This sample project allows learners to engage with game creation concepts, +applying various modifications to the game itself, all without reading or +writing any code. The `doc/MODS.md` file details the mods that have been made available.