ci/cd: lint Python scripts using pylint
This commit integrates `pylint` into the CI/CD pipeline to improve the quality of Python scripts within the project. By enforcing stricter linting standards, the aim is to identify and correct potential issues more efficiently, ultimately contributing to more reliable and maintainable code. Changes: - Introduce `npm run lint:pylint` command to facilitate unified way to run linting on different environments. - Include `npm run lint:pylint` in the CI/CD workflow to ensure all commits adhere to established Python coding standards. - Fix an issue identified by `pylint` in `configure_vscode.py`. - Rename the workflow to match the latest naming convention.
This commit is contained in:
29
.github/workflows/checks.quality.yaml
vendored
29
.github/workflows/checks.quality.yaml
vendored
@@ -1,4 +1,4 @@
|
||||
name: quality-checks
|
||||
name: checks.quality
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
@@ -47,3 +47,30 @@ jobs:
|
||||
echo 'No TODO comments found in the latest commit.'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
pylint:
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ macos, ubuntu, windows ]
|
||||
fail-fast: false # Still interested to see results from other combinations
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
-
|
||||
name: Setup node
|
||||
uses: ./.github/actions/setup-node
|
||||
-
|
||||
name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
-
|
||||
name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pylint
|
||||
-
|
||||
name: Analyzing the code with pylint
|
||||
run: npm run lint:pylint
|
||||
|
||||
Reference in New Issue
Block a user