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

Pylint check to PR #707

Closed
wants to merge 6 commits into from
Closed
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
25 changes: 25 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pylint

on: [ push,pull_request ]

jobs:

pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python "3.10"
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint mypy
- name: Analysing the code with pylint
run: |
pylint ./supervised --fail-under=6
- name: Black + pylint
run: |
mypy .
continue-on-error: true
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Tests
on: [ push,pull_request ]

jobs:
build:
tests:

runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -44,4 +44,4 @@ jobs:
- name: Test with pytest
run: |
pytest tests --cov=supervised/
continue-on-error: true
continue-on-error: true
4 changes: 3 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pytest
black
pytest-cov
coveralls
coveralls
pylint
mypy
Loading