Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prospector #282

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,26 @@ jobs:
bash ./.github/scripts/install_libiio.sh
bash ./.github/scripts/install_pydeps.sh

- name: Lint
- name: pylint
run: |
pip install -r requirements_dev.txt
mkdir report
pylint adi | pylint-json2html -o report/pylint.html

- name: pylint Report Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./report
destination_dir: reports/pylint/${{ github.ref_name }}

- name: Add PR report message
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
Generated pylint report [available here](https://analogdevicesinc.github.io/pyadi-iio/reports/pylint/${{ github.ref_name }}/pylint.html)

- name: Precommit Lint
run: |
pre-commit run --all-files 2> /dev/null
ec=$?
Expand Down
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ repos:
rev: v1.3.0
hooks:
- id: blacken-docs
- repo: https://github.com/pycqa/pylint
rev: pylint-2.7.1
hooks:
- id: pylint
Loading