From 8cb6f7173e6c0912ded58adf2189661da279f3af Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Fri, 28 Mar 2025 12:21:16 +0100 Subject: [PATCH] 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