From 0e7c819a8f0039d932e40df2d5fa340a363f68c4 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 14 May 2024 16:16:29 +0300 Subject: [PATCH] CI: add pylint --- .../{static_typing_test.yml => static_analysis.yml} | 10 ++++++++-- .woodpecker/functional_test.yml | 9 +++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) rename .github/workflows/{static_typing_test.yml => static_analysis.yml} (76%) diff --git a/.github/workflows/static_typing_test.yml b/.github/workflows/static_analysis.yml similarity index 76% rename from .github/workflows/static_typing_test.yml rename to .github/workflows/static_analysis.yml index 92761f7..e23d7e1 100644 --- a/.github/workflows/static_typing_test.yml +++ b/.github/workflows/static_analysis.yml @@ -1,4 +1,4 @@ -name: static typing test +name: static analysis on: push: @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - static_typing_test: + static_analysis: runs-on: ubuntu-latest @@ -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 diff --git a/.woodpecker/functional_test.yml b/.woodpecker/functional_test.yml index 2196f6c..6eab6a5 100644 --- a/.woodpecker/functional_test.yml +++ b/.woodpecker/functional_test.yml @@ -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 -- 2.31.1