From 7e9aff5877fa35b5e8d68fbe41ef996cefe7fa62 Mon Sep 17 00:00:00 2001 From: addhyanmalhotra <56017810+addhyanmalhotra@users.noreply.github.com> Date: Mon, 18 Oct 2021 12:45:16 +0530 Subject: [PATCH 1/3] blacken --- .github/workflows/pylint.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index c0dbb4a..660a53d 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,9 +1,9 @@ -name: Pylint +name: code_quality on: [push] jobs: - build: + code_quality: runs-on: ubuntu-latest @@ -21,4 +21,8 @@ jobs: continue-on-error: true run: | pylint `find . -type d -name migrations -prune -o -name '*.py'| grep -v __ |xargs` + - name: Python Blacken + uses: piotrpawlaczek/python-blacken@v20.8b1 + with: + only-check: 'no' From c80b689aa2b0425f3982451332b91cce11d801f8 Mon Sep 17 00:00:00 2001 From: addhyanmalhotra <56017810+addhyanmalhotra@users.noreply.github.com> Date: Mon, 18 Oct 2021 12:47:49 +0530 Subject: [PATCH 2/3] 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 660a53d..7c29abf 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -22,7 +22,7 @@ jobs: run: | pylint `find . -type d -name migrations -prune -o -name '*.py'| grep -v __ |xargs` - name: Python Blacken - uses: piotrpawlaczek/python-blacken@v20.8b1 + uses: piotrpawlaczek/python-blacken@release/stable with: only-check: 'no' From 1da7a6fc0bdefad37ae9a650f5fe56cee2c70004 Mon Sep 17 00:00:00 2001 From: addhyanmalhotra <56017810+addhyanmalhotra@users.noreply.github.com> Date: Mon, 18 Oct 2021 12:53:39 +0530 Subject: [PATCH 3/3] Update pylint.yml --- .github/workflows/pylint.yml | 38 ++++++++++++------------------------ 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 7c29abf..eec0585 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,28 +1,16 @@ -name: code_quality - -on: [push] - +name: reviewdog +on: [pull_request] jobs: - code_quality: - + linter_name: + name: runner / black formatter runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint - continue-on-error: true - run: | - pylint `find . -type d -name migrations -prune -o -name '*.py'| grep -v __ |xargs` - - name: Python Blacken - uses: piotrpawlaczek/python-blacken@release/stable - with: - only-check: 'no' - + - uses: actions/checkout@v2 + - uses: reviewdog/action-black@v2 + with: + github_token: ${{ secrets.github_token }} + # Change reviewdog reporter if you need [github-pr-check, github-check]. + reporter: github-pr-check + # Change reporter level if you need. + # GitHub Status Check won't become failure with a warning. + level: warning