From 211648d29f3b8ddaab192974e87fe9c16b558621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Mon, 23 Oct 2023 23:02:29 +0200 Subject: [PATCH] chore: better Prettier config for easier reviews --- .clang-format | 2 +- .github/ISSUE_TEMPLATE/BUG.md | 8 ++--- .github/ISSUE_TEMPLATE/DOCUMENTATION.md | 8 ++--- .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md | 8 ++--- .github/ISSUE_TEMPLATE/IMPROVEMENT.md | 8 ++--- .github/ISSUE_TEMPLATE/QUESTION.md | 8 ++--- .github/workflows/ci.yml | 44 +++++++++++------------ .github/workflows/release.yml | 44 +++++++++++------------ 8 files changed, 65 insertions(+), 65 deletions(-) diff --git a/.clang-format b/.clang-format index af980a0..5a6a40d 100644 --- a/.clang-format +++ b/.clang-format @@ -1,2 +1,2 @@ -BasedOnStyle: 'Google' +BasedOnStyle: "Google" ColumnLimit: 0 diff --git a/.github/ISSUE_TEMPLATE/BUG.md b/.github/ISSUE_TEMPLATE/BUG.md index e1fc7e7..d47b126 100644 --- a/.github/ISSUE_TEMPLATE/BUG.md +++ b/.github/ISSUE_TEMPLATE/BUG.md @@ -1,8 +1,8 @@ --- -name: '🐛 Bug Report' -about: 'Report an unexpected problem or unintended behavior.' -title: '[Bug]' -labels: 'bug' +name: "🐛 Bug Report" +about: "Report an unexpected problem or unintended behavior." +title: "[Bug]" +labels: "bug" --- diff --git a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md index 3307418..dc9a49c 100644 --- a/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +++ b/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md @@ -1,8 +1,8 @@ --- -name: '✨ Feature Request' -about: 'Suggest a new feature idea.' -title: '[Feature]' -labels: 'feature request' +name: "✨ Feature Request" +about: "Suggest a new feature idea." +title: "[Feature]" +labels: "feature request" --- diff --git a/.github/ISSUE_TEMPLATE/IMPROVEMENT.md b/.github/ISSUE_TEMPLATE/IMPROVEMENT.md index b5bdbb7..e50e289 100644 --- a/.github/ISSUE_TEMPLATE/IMPROVEMENT.md +++ b/.github/ISSUE_TEMPLATE/IMPROVEMENT.md @@ -1,8 +1,8 @@ --- -name: '🔧 Improvement' -about: 'Improve structure/format/performance/refactor/tests of the code.' -title: '[Improvement]' -labels: 'improvement' +name: "🔧 Improvement" +about: "Improve structure/format/performance/refactor/tests of the code." +title: "[Improvement]" +labels: "improvement" --- diff --git a/.github/ISSUE_TEMPLATE/QUESTION.md b/.github/ISSUE_TEMPLATE/QUESTION.md index c18eaa3..df6acdc 100644 --- a/.github/ISSUE_TEMPLATE/QUESTION.md +++ b/.github/ISSUE_TEMPLATE/QUESTION.md @@ -1,8 +1,8 @@ --- -name: '🙋 Question' -about: 'Further information is requested.' -title: '[Question]' -labels: 'question' +name: "🙋 Question" +about: "Further information is requested." +title: "[Question]" +labels: "question" --- ### Question diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e6c042..b812da0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: 'CI' +name: "CI" on: push: @@ -8,33 +8,33 @@ on: jobs: ci: - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" steps: - - uses: 'actions/checkout@v3.5.3' + - uses: "actions/checkout@v3.5.3" - - run: 'sudo apt update' + - run: "sudo apt update" - - name: 'Install Build Tools' - run: 'sudo apt install --yes build-essential gcc make clang-format' + - name: "Install Build Tools" + run: "sudo apt install --yes build-essential gcc make clang-format" - - name: 'Install Documentation Tools' - run: 'sudo apt install --yes doxygen doxygen-gui doxygen-doc graphviz' + - name: "Install Documentation Tools" + run: "sudo apt install --yes doxygen doxygen-gui doxygen-doc graphviz" - - run: 'gcc --version' + - run: "gcc --version" - - run: 'make' - - run: 'make run' - - run: 'make test' - - run: 'make lint' - - run: 'make documentation' - - run: 'make set_version' - - run: 'make clean' + - run: "make" + - run: "make run" + - run: "make test" + - run: "make lint" + - run: "make documentation" + - run: "make set_version" + - run: "make clean" lint-commit: - runs-on: 'ubuntu-latest' - steps: - - uses: 'actions/checkout@v3.5.3' - with: - fetch-depth: 0 + runs-on: "ubuntu-latest" + steps: + - uses: "actions/checkout@v3.5.3" + with: + fetch-depth: 0 - - uses: 'wagoid/commitlint-github-action@v5.4.1' + - uses: "wagoid/commitlint-github-action@v5.4.1" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b376339..ec59aaf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: 'Release' +name: "Release" on: push: @@ -6,52 +6,52 @@ on: jobs: release: - runs-on: 'ubuntu-latest' + runs-on: "ubuntu-latest" steps: - - uses: 'actions/checkout@v3.5.3' + - uses: "actions/checkout@v3.5.3" with: fetch-depth: 0 persist-credentials: false submodules: recursive - - name: 'Import GPG key' - uses: 'crazy-max/ghaction-import-gpg@v5.3.0' + - name: "Import GPG key" + uses: "crazy-max/ghaction-import-gpg@v5.3.0" with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} git_user_signingkey: true git_commit_gpgsign: true - - run: 'sudo apt update' + - run: "sudo apt update" - - name: 'Install Build Tools' - run: 'sudo apt install --yes build-essential gcc make clang-format' + - name: "Install Build Tools" + run: "sudo apt install --yes build-essential gcc make clang-format" - - name: 'Install Documentation Tools' - run: 'sudo apt install --yes doxygen doxygen-gui doxygen-doc graphviz' + - name: "Install Documentation Tools" + run: "sudo apt install --yes doxygen doxygen-gui doxygen-doc graphviz" - - run: 'make set_version' + - run: "make set_version" - - name: 'Use Node.js' - uses: 'actions/setup-node@v3.7.0' + - name: "Use Node.js" + uses: "actions/setup-node@v3.7.0" with: - node-version: '18.17.0' + node-version: "18.17.0" - - name: 'Install Release Tools' - run: 'npm install --save-dev semantic-release@21.0.7 @commitlint/cli@17.6.7 @commitlint/config-conventional@17.6.7 @semantic-release/git@10.0.1 @semantic-release/exec@6.0.3 @saithodev/semantic-release-backmerge@3.2.0 vercel@31.2.2' + - name: "Install Release Tools" + run: "npm install --save-dev semantic-release@21.0.7 @commitlint/cli@17.6.7 @commitlint/config-conventional@17.6.7 @semantic-release/git@10.0.1 @semantic-release/exec@6.0.3 @saithodev/semantic-release-backmerge@3.2.0 vercel@31.2.2" - - run: 'rm --force package.json package-lock.json' + - run: "rm --force package.json package-lock.json" - - name: 'Release' - run: 'npx semantic-release' + - name: "Release" + run: "npx semantic-release" env: GH_TOKEN: ${{ secrets.GH_TOKEN }} GIT_COMMITTER_NAME: ${{ secrets.GIT_NAME }} GIT_COMMITTER_EMAIL: ${{ secrets.GIT_EMAIL }} - - name: 'Generate Documentation' - run: 'make documentation' + - name: "Generate Documentation" + run: "make documentation" - - name: 'Deploy to Vercel' + - name: "Deploy to Vercel" run: 'npx vercel ./documentation/html --token="${VERCEL_TOKEN}" --prod' env: VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}