From 8cb6f7173e6c0912ded58adf2189661da279f3af Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Fri, 28 Mar 2025 12:21:16 +0100 Subject: [PATCH 1/3] add autolinter suggest-changes to github actions --- .github/workflows/lint.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 00000000..dad8cb93 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,30 @@ +name: Run linting and suggest changes + +on: + pull_request: + +permissions: + contents: read + pull-requests: write + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.10'] + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -r requirements/base.txt + - name: Check markdown format + run: mdformat docs/ + - uses: parkerbxyz/suggest-changes@v1 + with: + comment: 'Please commit the suggested changes from mdformat' + event: 'REQUEST_CHANGES' \ No newline at end of file From ddf831ece614811a4cae21182a21803313ad7b25 Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Fri, 28 Mar 2025 12:39:24 +0100 Subject: [PATCH 2/3] Remove comment at autosuggestion --- .github/workflows/lint.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index dad8cb93..fcc081f3 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -26,5 +26,4 @@ jobs: run: mdformat docs/ - uses: parkerbxyz/suggest-changes@v1 with: - comment: 'Please commit the suggested changes from mdformat' event: 'REQUEST_CHANGES' \ No newline at end of file From 81c967727e33aca732a053bb40be42fcf124957c Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Fri, 28 Mar 2025 12:48:54 +0100 Subject: [PATCH 3/3] Add EOF line --- .github/workflows/lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index fcc081f3..a97363c7 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -26,4 +26,4 @@ jobs: run: mdformat docs/ - uses: parkerbxyz/suggest-changes@v1 with: - event: 'REQUEST_CHANGES' \ No newline at end of file + event: 'REQUEST_CHANGES'