Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add ci.pylintrc and GitHub Actions Workflow for Pylint
  • Loading branch information
pavellos21 committed Oct 29, 2021
commit c64a06c5963c8cf9f96f517a2f9668cbf7eafa36
24 changes: 24 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pylint

on: [ push ]

jobs:
build:
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
run: |
pylint --rcfile=ci.pylintrc \
./db/sc \
./db/tests \
./web/backend/service \
./web/backend/tests
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ disable=

[BASIC]

good-names=i,j,k,ex,tr,_
good-names=i,j,k,ex,tr,el,_
12 changes: 12 additions & 0 deletions ci.pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[MESSAGES CONTROL]

disable=
missing-docstring,
no-member,
import-error,
duplicate-code


[BASIC]

good-names=i,j,k,ex,tr,el,_