From 26308e63ba499125a2139df7632a1a2490df4213 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 11:03:14 +0530 Subject: [PATCH 01/14] Update requirements.txt --- Sources/requirements.txt | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Sources/requirements.txt b/Sources/requirements.txt index 4666c46..69b433d 100644 --- a/Sources/requirements.txt +++ b/Sources/requirements.txt @@ -1,11 +1,10 @@ -Jinja2==2.7.2 -MarkupSafe==0.19 -Pygments==1.6 -Sphinx==1.2.2 -docutils==0.11 -sphinx-rtd-theme==0.1.6 -gnureadline==6.2.5 -# hieroglyph==0.7.dev --e git+https://github.com/nyergler/hieroglyph.git#egg=hieroglyph -ipython==2.3.0 -libsass==0.5.1 +Jinja2 +MarkupSafe +Pygments +Sphinx +docutils +sphinx-rtd-theme +gnureadline +hieroglyph +ipython +libsass From aff4b55358b6ffe81cfd63a337bc4cd04ab44883 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 11:03:54 +0530 Subject: [PATCH 02/14] Create main.yml --- .github/workflows/main.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a17a980 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,41 @@ +name: Python package + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.8] + + 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 flake8 pytest + if [ -f Sources/requirements.txt ]; then pip install -r Sources/requirements.txt; fi + # - name: Lint with flake8 + # run: | + # stop the build if there are Python syntax errors or undefined names + # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + #- name: Test with pytest + # run: | + # pytest + - name: Build static site + run: | + cd ./Sources; make html + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./Sources/build/html From 59b6be3223335ae6cbb561ff987cc1e8fe3e0a2d Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 11:09:01 +0530 Subject: [PATCH 03/14] Update where_to_put_tests.rst minor edit (also to test the buildout using github workflow). --- Sources/source/where_to_put_tests.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/source/where_to_put_tests.rst b/Sources/source/where_to_put_tests.rst index c569af6..ef68f21 100644 --- a/Sources/source/where_to_put_tests.rst +++ b/Sources/source/where_to_put_tests.rst @@ -20,7 +20,7 @@ https://docs.pytest.org/en/stable/goodpractices.html For ``nose``, read https://nose.readthedocs.io/en/latest/finding_tests.html -and for ``unittest`` read https://docs.python.org/3/library/unittest.html#test-discovery . +and for ``unittest`` read https://docs.python.org/3/library/unittest.html#test-discovery. Two Options From a8c538ab1d0e068b144eb1d242addee927ccee70 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 17:15:44 +0530 Subject: [PATCH 04/14] Create autopep8.yml --- .github/workflows/autopep8.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/autopep8.yml diff --git a/.github/workflows/autopep8.yml b/.github/workflows/autopep8.yml new file mode 100644 index 0000000..8db8ec6 --- /dev/null +++ b/.github/workflows/autopep8.yml @@ -0,0 +1,24 @@ +name: Format python code +on: push +jobs: + autopep8: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: autopep8 + uses: peter-evans/autopep8@v1 + with: + args: --recursive --in-place --aggressive --aggressive . + - name: Create Pull Request + uses: peter-evans/create-pull-request@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: autopep8 action fixes + committer: Peter Evans + title: Fixes by autopep8 action + body: This is an auto-generated PR with fixes by autopep8. + labels: autopep8, automated pr + reviewers: peter-evans + branch: autopep8-patches + + From 96e9c05c8da25a94958520e3ee26225e4eff65a1 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 17:19:13 +0530 Subject: [PATCH 05/14] Delete autopep8.yml --- .github/workflows/autopep8.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/autopep8.yml diff --git a/.github/workflows/autopep8.yml b/.github/workflows/autopep8.yml deleted file mode 100644 index 8db8ec6..0000000 --- a/.github/workflows/autopep8.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Format python code -on: push -jobs: - autopep8: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: autopep8 - uses: peter-evans/autopep8@v1 - with: - args: --recursive --in-place --aggressive --aggressive . - - name: Create Pull Request - uses: peter-evans/create-pull-request@v2 - with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: autopep8 action fixes - committer: Peter Evans - title: Fixes by autopep8 action - body: This is an auto-generated PR with fixes by autopep8. - labels: autopep8, automated pr - reviewers: peter-evans - branch: autopep8-patches - - From d7d1732429974e8851cf9c1db33956e3706c9176 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 21:53:05 +0530 Subject: [PATCH 06/14] Create flake.yml --- .github/workflows/flake.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/flake.yml diff --git a/.github/workflows/flake.yml b/.github/workflows/flake.yml new file mode 100644 index 0000000..272c489 --- /dev/null +++ b/.github/workflows/flake.yml @@ -0,0 +1,23 @@ +name: Code Quality + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + lint: + name: Python Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: "2.7" + - name: Run flake8 + uses: julianwachholz/flake8-action@v1 + with: + checkName: "Python Lint" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From bcb710d3923d1bf7ced15bfc569ede6689aee399 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 22:02:56 +0530 Subject: [PATCH 07/14] Update flake.yml --- .github/workflows/flake.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/flake.yml b/.github/workflows/flake.yml index 272c489..7286f7e 100644 --- a/.github/workflows/flake.yml +++ b/.github/workflows/flake.yml @@ -16,8 +16,7 @@ jobs: with: python-version: "2.7" - name: Run flake8 - uses: julianwachholz/flake8-action@v1 + uses: TrueBrain/actions-flake8@master with: - checkName: "Python Lint" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + src: Sources/code + ignore: E9,F63,F7,F82 From bfe9ee19744f97a26ab5415214bef94cccc5c767 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 22:26:49 +0530 Subject: [PATCH 08/14] Update and rename flake.yml to flake8.yml --- .github/workflows/{flake.yml => flake8.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{flake.yml => flake8.yml} (93%) diff --git a/.github/workflows/flake.yml b/.github/workflows/flake8.yml similarity index 93% rename from .github/workflows/flake.yml rename to .github/workflows/flake8.yml index 7286f7e..c615676 100644 --- a/.github/workflows/flake.yml +++ b/.github/workflows/flake8.yml @@ -18,5 +18,5 @@ jobs: - name: Run flake8 uses: TrueBrain/actions-flake8@master with: - src: Sources/code + path: Sources/code ignore: E9,F63,F7,F82 From 0687cf68ffdbd335bf6091a16fb4567796485b35 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 22:40:02 +0530 Subject: [PATCH 09/14] Update flake8.yml --- .github/workflows/flake8.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index c615676..fa920bc 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -19,4 +19,4 @@ jobs: uses: TrueBrain/actions-flake8@master with: path: Sources/code - ignore: E9,F63,F7,F82 + ignore: E9,F63,F7,F82, E203, W293, E231, W391, E265, E266, E226, E301, E228 From 1ae258de059406816dc089606b86c146be5ab061 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 22:45:17 +0530 Subject: [PATCH 10/14] Update flake8.yml --- .github/workflows/flake8.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index fa920bc..a72b751 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -19,4 +19,4 @@ jobs: uses: TrueBrain/actions-flake8@master with: path: Sources/code - ignore: E9,F63,F7,F82, E203, W293, E231, W391, E265, E266, E226, E301, E228 + ignore: E9,F63,F7,F82, E203, W293, E231, W391, E265, E266, E226, E301, E228, E401, E303 From 88bf9a98a99bd342581e58e8ae55059526b4eb4a Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 22:49:28 +0530 Subject: [PATCH 11/14] Update flake8.yml --- .github/workflows/flake8.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index a72b751..a9159ec 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -19,4 +19,4 @@ jobs: uses: TrueBrain/actions-flake8@master with: path: Sources/code - ignore: E9,F63,F7,F82, E203, W293, E231, W391, E265, E266, E226, E301, E228, E401, E303 + ignore: E9,F63,F7,F82,E203,W293,E231,W391,E265,E266,E226,E301,E228,E401,E303 From 3d22907ead1f9e80cbfa8d161d66bf81ad95599b Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 22:53:16 +0530 Subject: [PATCH 12/14] Update flake8.yml --- .github/workflows/flake8.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index a9159ec..d9c5d0e 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -19,4 +19,7 @@ jobs: uses: TrueBrain/actions-flake8@master with: path: Sources/code - ignore: E9,F63,F7,F82,E203,W293,E231,W391,E265,E266,E226,E301,E228,E401,E303 + ignore: E9,F63,F7,F82,E303 + + + From 440678ab041fcfd70d3b0f2ea7eb6d7df6708d2d Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 23:18:17 +0530 Subject: [PATCH 13/14] Update flake8.yml --- .github/workflows/flake8.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index d9c5d0e..5e495f2 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -19,7 +19,8 @@ jobs: uses: TrueBrain/actions-flake8@master with: path: Sources/code - ignore: E9,F63,F7,F82,E303 + ignore: E9,F63,F7,F82,E203,W293,E231,W391,E265,E266,E226,E301,E228,E401,E303 + From 75ef457a20b2d4ebf2359882919c1ba34b3a1729 Mon Sep 17 00:00:00 2001 From: Ashok Bakthavathsalam Date: Wed, 26 Aug 2020 23:24:34 +0530 Subject: [PATCH 14/14] Update flake8.yml --- .github/workflows/flake8.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 5e495f2..ef1acaf 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -19,7 +19,7 @@ jobs: uses: TrueBrain/actions-flake8@master with: path: Sources/code - ignore: E9,F63,F7,F82,E203,W293,E231,W391,E265,E266,E226,E301,E228,E401,E303 + ignore: E9,F63,F7,F82,E203,W293,E231,W291,W391,E265,E266,E226,E301,E228,E401,E303,E201,E202,E305,E501,E261