github/workflows: check dnf-json with pylint
Use a fedora container for dnf dependency. Add a pylintrc file to the project with 120 max line length and docstrings ignored.
This commit is contained in:
parent
e4baddfad1
commit
f449cd45e8
2 changed files with 21 additions and 0 deletions
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
|
|
@ -37,6 +37,20 @@ jobs:
|
|||
- name: Send coverage to codecov.io
|
||||
run: bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
python-lint:
|
||||
name: "🐍 Lint (dnf-json)"
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker.io/library/fedora:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.4.0
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
dnf -y install python3-pylint
|
||||
- name: Analysing the code with pylint
|
||||
run: |
|
||||
python3 -m pylint dnf-json
|
||||
|
||||
unit-tests:
|
||||
name: "🛃 Unit tests"
|
||||
runs-on: ubuntu-20.04
|
||||
|
|
|
|||
7
.pylintrc
Normal file
7
.pylintrc
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[FORMAT]
|
||||
max-line-length=120
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
disable=missing-module-docstring,
|
||||
missing-class-docstring,
|
||||
missing-function-docstring
|
||||
Loading…
Add table
Add a link
Reference in a new issue