Skip to content

Commit

Permalink
CI: add pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
a13xp0p0v committed May 14, 2024
1 parent 9456d37 commit 0e7c819
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: static typing test
name: static analysis

on:
push:
Expand All @@ -7,7 +7,7 @@ on:
branches: [ master ]

jobs:
static_typing_test:
static_analysis:

runs-on: ubuntu-latest

Expand All @@ -31,3 +31,9 @@ jobs:
run: |
pip install mypy
mypy kernel_hardening_checker/ --show-error-context --pretty --no-incremental --check-untyped-defs --disallow-untyped-defs --strict-equality
- name: Check code with pylint
run: |
pip install pylint
pip install setuptools
pylint --recursive=y kernel_hardening_checker setup.py
9 changes: 9 additions & 0 deletions .woodpecker/functional_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ steps:
- python --version
- pip install --no-cache-dir mypy
- mypy kernel_hardening_checker/ --show-error-context --pretty --no-incremental --check-untyped-defs --disallow-untyped-defs --strict-equality
pylint-checking:
image: python:3
pull: true
commands:
- echo "Install the pylint tool..."
- python --version
- pip install --no-cache-dir pylint
- pip install --no-cache-dir setuptools
- pylint --recursive=y kernel_hardening_checker setup.py
functional-test-with-coverage:
image: python:3
pull: true
Expand Down

0 comments on commit 0e7c819

Please sign in to comment.