Raghav-Mah3shwari commented on PR #1245:
URL: https://github.com/apache/knox/pull/1245#issuecomment-4645207755
Hi @moresandeep ,
Beyond .pylintrc, run_pylint.sh, and style fixes, there are docker-compose
and workflow changes to enforce pylint in CI:
**Why docker-compose changed**
Previously, the tests service used python:3.9-slim, bind-mounted ../tests,
and only ran pytest. There was no lint step in CI.
We now run pylint in the tests container before pytest, so every PR that
runs Apache Knox Docker Compose Tests fails on lint violations — no optional
git hook required.
**Why the images changed**
apache/knox-compose-tests:local (new): built from tests/Dockerfile with
pylint, .pylintrc, and test sources baked in. Needed so CI has pylint available
and lints the same code it tests.
apache/knox-dev:${IMAGE_TAG:-master} (unchanged role): still the Knox
runtime for ldap/knox; CI builds this as before.
knox-dev-local (optional, local dev only): builds Knox from source via
Dockerfile.local not used by CI.
**Other compose tweaks**
tests.yml now builds knox-dev and tests (was knox-dev only).
Knox logs use a named volume instead of ./logs bind-mount (more reliable on
Docker Desktop).
Removed runtime pip install from the tests command
In a summary we can say that local lint (run_pylint.sh) = fast developer
feedback; compose/CI lint = mandatory gate for all PRs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]