CI: Check bin/kernel-hardening-checker with pylint

This commit is contained in:
Alexander Popov
2025-12-13 21:50:05 +03:00
parent 0adbbd64c6
commit e2890ca735
3 changed files with 4 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ jobs:
- name: Check the code with pylint
run: |
python3 -m pip install pylint
pylint --recursive=y kernel_hardening_checker
pylint --verbose --recursive=y bin/kernel-hardening-checker kernel_hardening_checker/
- name: Check the code with ruff
run: |

View File

@@ -21,7 +21,7 @@ steps:
- python3 -m pip install --upgrade pip
- python3 -m pip install pylint
- echo "Run pylint..."
- pylint --recursive=y kernel_hardening_checker
- pylint --verbose --recursive=y bin/kernel-hardening-checker kernel_hardening_checker/
- name: ruff-checking
image: python:3
when:

View File

@@ -9,6 +9,8 @@ SPDX-License-Identifier: GPL-3.0-only
This file is for using the tool without installation via setuptools.
"""
# pylint: disable=invalid-name,import-error,wrong-import-position
import inspect
import os
import sys