From fa0c1dbed7ce058ff116869248bcc99ccc7caf9d Mon Sep 17 00:00:00 2001 From: joseph784 <64226382+joseph784@users.noreply.github.com> Date: Sun, 7 Nov 2021 00:29:29 -0700 Subject: [PATCH 1/8] 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 00000000..10c49c6d --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.8", "3.9", "3.10"] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + 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 `ls -R|grep .py$|xargs` From 5f4f6c0b0cc75768828c671be298c8c1124b800d Mon Sep 17 00:00:00 2001 From: joseph784 <64226382+joseph784@users.noreply.github.com> Date: Sun, 7 Nov 2021 00:35:06 -0700 Subject: [PATCH 2/8] Change python version to 3.7 --- .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 10c49c6d..803a1649 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.7"] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} From 89b86a53fcfa055864fc620ba9ed0df87ffd543d Mon Sep 17 00:00:00 2001 From: Joseph Agarwal Date: Sun, 7 Nov 2021 01:07:44 -0700 Subject: [PATCH 3/8] Added pylint to pull_requests --- .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 10c49c6d..76a4ad56 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,6 +1,6 @@ name: Pylint -on: [push] +on: [push, pull_request] jobs: build: From b635ceb284612be436c6c6f3bba82f9154aba381 Mon Sep 17 00:00:00 2001 From: joseph784 <64226382+joseph784@users.noreply.github.com> Date: Sun, 7 Nov 2021 13:27:39 -0800 Subject: [PATCH 4/8] Update .github/workflows/pylint.yml Co-authored-by: Jason Ngo --- .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 464b0c62..0e0d8992 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 `ls -R|grep .py$|xargs` + pylint $(git ls-files '*.py') From 278847815ffaface1212cb54b64678bf9a146288 Mon Sep 17 00:00:00 2001 From: joseph784 <64226382+joseph784@users.noreply.github.com> Date: Sun, 5 Dec 2021 13:10:18 -0800 Subject: [PATCH 5/8] Update .github/workflows/pylint.yml Co-authored-by: Jason Ngo --- .github/workflows/pylint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0e0d8992..6fdce91d 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -18,6 +18,9 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v11.5 - name: Analysing the code with pylint run: | pylint $(git ls-files '*.py') From 261750c225c681f9e736fc08b6d2990f0d25cbe5 Mon Sep 17 00:00:00 2001 From: joseph784 <64226382+joseph784@users.noreply.github.com> Date: Sun, 5 Dec 2021 13:10:52 -0800 Subject: [PATCH 6/8] Update .github/workflows/pylint.yml Co-authored-by: Jason Ngo --- .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 6fdce91d..81e45af5 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,6 +1,6 @@ name: Pylint -on: [push, pull_request] +on: [pull_request] jobs: build: From 0b8ab1e2d6e3f951de9f3a3fd12da6d9ccc5de56 Mon Sep 17 00:00:00 2001 From: joseph784 <64226382+joseph784@users.noreply.github.com> Date: Sun, 6 Feb 2022 02:15:57 -0800 Subject: [PATCH 7/8] Update .github/workflows/pylint.yml Co-authored-by: Andrei Popescu --- .github/workflows/pylint.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 81e45af5..c528fa72 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -23,4 +23,12 @@ jobs: uses: tj-actions/changed-files@v11.5 - name: Analysing the code with pylint run: | - pylint $(git ls-files '*.py') + PYTHONFILES="" + for file in ${{ steps.changed-files.outputs.all_modified_files }}; do + if [[ -f $file && $file == *.py ]] + then + PYTHONFILES="${PYTHONFILES} $file" + fi + done + echo $PYTHONFILES + pylint $PYTHONFILES From 6b80f8d15e8515f07cc7f3eb4d9d1f79ad72bfb1 Mon Sep 17 00:00:00 2001 From: joseph784 <64226382+joseph784@users.noreply.github.com> Date: Sun, 6 Feb 2022 02:16:04 -0800 Subject: [PATCH 8/8] Update .github/workflows/pylint.yml Co-authored-by: Jason Ngo --- .github/workflows/pylint.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c528fa72..7567b9fc 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -18,9 +18,9 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint - - name: Get changed files - id: changed-files - uses: tj-actions/changed-files@v11.5 + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v11.5 - name: Analysing the code with pylint run: | PYTHONFILES=""