From 965d673cb86fd65a2be4c672d466ffe2297f28d9 Mon Sep 17 00:00:00 2001 From: James Allsopp Date: Fri, 24 Nov 2023 09:49:08 +0000 Subject: [PATCH 1/4] feat: Adding potential pylint.yml, will be eventually absorbed into pre-commit --- .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..2ead5f4 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + find . -name '*.py' -exec pylint {} \; + From e3feeaf5cee223950b95e7a08fe44640fb8e8a74 Mon Sep 17 00:00:00 2001 From: James Allsopp Date: Fri, 24 Nov 2023 09:49:08 +0000 Subject: [PATCH 2/4] feat: Adding potential pylint.yml, will be eventually absorbed into pre-commit --- .github/workflows/pylint.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 2ead5f4..b772284 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: @@ -19,5 +19,6 @@ jobs: pip install pylint - name: Analysing the code with pylint run: | - find . -name '*.py' -exec pylint {} \; + pylint . --recursive=y --enable=W + From 1b37b86ba91e5d1dff273f67fe0a25f4990f546d Mon Sep 17 00:00:00 2001 From: James Allsopp Date: Fri, 24 Nov 2023 10:30:27 +0000 Subject: [PATCH 3/4] feat: Adding pip install -r requirements.txt --- .github/workflows/pylint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b772284..33a36ec 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -17,6 +17,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint + pip install -r requirements.txt - name: Analysing the code with pylint run: | pylint . --recursive=y --enable=W From 575d6d32dd1c9a6b91de6edb089e150765074d42 Mon Sep 17 00:00:00 2001 From: James Allsopp Date: Fri, 24 Nov 2023 10:35:37 +0000 Subject: [PATCH 4/4] feat: Upgrading python version to 3.9 --- .github/workflows/pylint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 33a36ec..8fb7d3c 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v1 with: - python-version: 3.8 + python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip