From 6164e1cd1b4e87afb1d4c0f90e995662e6a7d8c3 Mon Sep 17 00:00:00 2001 From: Isaac Milarsky Date: Wed, 17 Jan 2024 11:10:41 -0600 Subject: [PATCH 1/2] add GitHub workflow to run linting checks, namely Pylint for now Signed-off-by: Isaac Milarsky --- .github/workflows/checks.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000000..cad5ee8065 --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,19 @@ +name: "run-linting-checks" +on: + pull_request: + branches: [main, dev] + +jobs: + run-pylint: + name: runner / pylint + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dciborow/action-pylint@0.1.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review + level: warning + glob_pattern: "**/*.py" + filter_mode: "file" \ No newline at end of file From eaeb4e9418bff890193ed6ec12adbcae1fc9bb3f Mon Sep 17 00:00:00 2001 From: Isaac Milarsky Date: Wed, 17 Jan 2024 15:40:54 -0600 Subject: [PATCH 2/2] also add misspell check Signed-off-by: Isaac Milarsky --- .github/workflows/checks.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index cad5ee8065..c23bfd7bb3 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -16,4 +16,16 @@ jobs: reporter: github-pr-review level: warning glob_pattern: "**/*.py" - filter_mode: "file" \ No newline at end of file + filter_mode: "file" + + misspell: + name: runner / misspell + runs-on: ubuntu-latest + steps: + - name: Highlight any misspellings in changes. + uses: actions/checkout@v4 + - name: misspell + uses: reviewdog/action-misspell@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + locale: "US" \ No newline at end of file