From 5393e210a1946a76ff2092c29c83bc34e46743dc Mon Sep 17 00:00:00 2001 From: etsells <147210601+ETSells@users.noreply.github.com> Date: Thu, 7 May 2026 06:41:41 -0700 Subject: [PATCH 1/6] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..bd937ed --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.12", "3.13", "3.14"] + steps: + - uses: actions/checkout@v6 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py') From f2b7395102bf4407b83edc18ffab1ba98360456a Mon Sep 17 00:00:00 2001 From: etsells <147210601+ETSells@users.noreply.github.com> Date: Thu, 7 May 2026 07:19:46 -0700 Subject: [PATCH 2/6] Update pylint.yml --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index bd937ed..02067f2 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,4 +20,4 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py') + pylint $(git ls-files '*.py') --fail-on=F From 73cbdc51261705b8a2c1f27ad32891eed4753a30 Mon Sep 17 00:00:00 2001 From: Journey Hancock Date: Thu, 7 May 2026 16:00:00 -0700 Subject: [PATCH 3/6] fix: add installing requirements and SDECv2 as a package --- .github/workflows/pylint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 02067f2..0daf141 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -17,6 +17,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -e . pip install pylint - name: Analysing the code with pylint run: | From 450b609d6971d323051202547e0a08bd0b058838 Mon Sep 17 00:00:00 2001 From: Journey Hancock Date: Thu, 7 May 2026 16:12:36 -0700 Subject: [PATCH 4/6] fix: make pylint only fail on fatal errors --- .github/workflows/pylint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0daf141..b2ef6a5 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -22,4 +22,5 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py') --fail-on=F + pylint $(git ls-files '*.py'); code=$? + (( code & 35 )) && exit 1 || exit 0 From ba277b44191cd1da6b5617cb044e944507241212 Mon Sep 17 00:00:00 2001 From: Journey Hancock Date: Thu, 7 May 2026 16:16:40 -0700 Subject: [PATCH 5/6] fix: remove Testing module from linting --- .github/workflows/pylint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b2ef6a5..fff666b 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -22,5 +22,5 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py'); code=$? + pylint $(git ls-files '*.py' | grep -v '^Testing/'); code=$? (( code & 35 )) && exit 1 || exit 0 From 800385a38692a5f8e0350b7df69fc18169cc3eeb Mon Sep 17 00:00:00 2001 From: Journey Hancock Date: Thu, 7 May 2026 16:19:43 -0700 Subject: [PATCH 6/6] fix: remove exit on non-zero for pylint command --- .github/workflows/pylint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index fff666b..51ceefe 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -22,5 +22,8 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py' | grep -v '^Testing/'); code=$? + set +e + pylint $(git ls-files '*.py' | grep -v '^Testing/') + code=$? + set -e (( code & 35 )) && exit 1 || exit 0