From 0ede706e3e22a1b79832a03424cff134681828eb Mon Sep 17 00:00:00 2001 From: Wyatt Stanke Date: Wed, 21 Feb 2024 15:49:48 -0500 Subject: [PATCH] Finish formatting --- .github/workflows/codacy.yml | 12 +++++++---- .github/workflows/codeql.yml | 3 ++- .github/workflows/lint.yml | 2 +- .github/workflows/python-publish.yml | 2 +- .github/workflows/stale_isseue.yml | 15 +++++++------- .github/workflows/test.yml | 31 +++------------------------- .github/workflows/welcome.yml | 8 +++++-- .yamllint | 2 +- 8 files changed, 30 insertions(+), 45 deletions(-) diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index d8ac4716..5bd76f4c 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -26,9 +26,12 @@ permissions: jobs: codacy-security-scan: permissions: - contents: read # for actions/checkout to fetch code - security-events: write # for github/codeql-action/upload-sarif to upload SARIF results - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + # for actions/checkout to fetch code + contents: read + # for github/codeql-action/upload-sarif to upload SARIF results + security-events: write + # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + actions: read name: Codacy Security Scan runs-on: ubuntu-latest steps: @@ -39,7 +42,8 @@ jobs: - name: Run Codacy Analysis CLI uses: codacy/codacy-analysis-cli-action@33d455949345bddfdb845fba76b57b70cc83754b with: - # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository + # Check https://github.com/codacy/codacy-analysis-cli#project-token + # to get your project token from your Codacy repository # You can also omit the token and run the tools that support default configurations project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} verbose: true diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 62dbc66c..73e48835 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -55,7 +55,8 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + # For more details on CodeQL's query packs, refer to: + # https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality uses: github/codeql-action/autobuild@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5f2613bd..06d57c82 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,6 @@ --- name: Lint -on: [push, pull_request] # yamllint disable-line rule:truthy +on: [push, pull_request] jobs: yaml-lint: runs-on: ubuntu-latest diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index f2847ed7..429829f1 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,6 +1,6 @@ --- name: Upload Python Package -on: # yamllint disable-line rule:truthy +on: release: types: [published] permissions: diff --git a/.github/workflows/stale_isseue.yml b/.github/workflows/stale_isseue.yml index 1caabe04..6e5fc11c 100644 --- a/.github/workflows/stale_isseue.yml +++ b/.github/workflows/stale_isseue.yml @@ -25,23 +25,24 @@ jobs: close-issue-reason: not_planned any-of-labels: "status:awaiting user response,status:more data needed" stale-issue-message: > - Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further - activity occurs. + Marking this issue as stale since it has been open for 14 days with no activity. + This issue will be closed if no further activity occurs. close-issue-message: > - This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. + This issue was closed because it has been inactive for 28 days. + Please post a new issue if you need further assistance. Thanks! days-before-pr-stale: 14 days-before-pr-close: 14 stale-pr-label: "status:stale" stale-pr-message: > - Marking this pull request as stale since it has been open for 14 days with no activity. This PR will be closed if no - further activity occurs. + Marking this pull request as stale since it has been open for 14 days with no activity. + This PR will be closed if no further activity occurs. close-pr-message: > - This pull request was closed because it has been inactive for 28 days. Please open a new pull request if you need further - assistance. Thanks! + This pull request was closed because it has been inactive for 28 days. + Please open a new pull request if you need furtherassistance. Thanks! # Label that can be assigned to issues to exclude them from being marked as stale exempt-issue-labels: 'override-stale' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 31ff17fc..cbce8f88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,34 +28,9 @@ jobs: python-version: ${{ matrix.python-version }} poetry-version: "1.4.2" cache-key: ${{ matrix.test_type }} - install-command: if [ "${{ matrix.test_type }}" == "core" ]; then echo "Running core tests, installing dependencies with - poetry..." poetry install else echo "Running extended tests, installing dependencies with poetry..." poetry install -E - extended_testing fi - - name: Run ${{matrix.test_type}} tests - run: | - if [ "${{ matrix.test_type }}" == "core" ]; then - make test - else - make extended_tests - fi - shell: bash - name: Python ${{ matrix.python-version }} ${{ matrix.test_type }} - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: "./.github/actions/poetry_setup" - with: - python-version: ${{ matrix.python-version }} - poetry-version: "1.4.2" - cache-key: ${{ matrix.test_type }} - install-command: | - if [ "${{ matrix.test_type }}" == "core" ]; then - echo "Running core tests, installing dependencies with poetry..." - poetry install - else - echo "Running extended tests, installing dependencies with poetry..." - poetry install -E extended_testing - fi + install-command: if [ "${{ matrix.test_type }}" == "core" ]; then echo "Running core tests, installing + dependencies with poetry..." poetry install else echo "Running extended tests, installing dependencies + with poetry..." poetry install -E extended_testing fi - name: Run ${{matrix.test_type}} tests run: | if [ "${{ matrix.test_type }}" == "core" ]; then diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml index 617830ab..094943d0 100644 --- a/.github/workflows/welcome.yml +++ b/.github/workflows/welcome.yml @@ -14,5 +14,9 @@ jobs: - uses: actions/first-interaction@v1.3.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: "Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap." - pr-message: "Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap." + issue-message: > + Hello there, thank you for opening an Issue ! 🙏🏻 + The team was notified and they will get back to you asap. + pr-message: > + Hello there, thank you for opening an PR ! 🙏🏻 + The team was notified and they will get back to you asap. diff --git a/.yamllint b/.yamllint index 092943ba..237e7d23 100644 --- a/.yamllint +++ b/.yamllint @@ -6,4 +6,4 @@ rules: max: 127 truthy: # GitHub Actions - check-keys: false \ No newline at end of file + check-keys: false