Harden CI lint path for stable agent builds

This commit is contained in:
2026-03-15 11:36:56 +01:00
parent b01a3be5cd
commit abd96c8837
3 changed files with 6 additions and 5 deletions

5
Jenkinsfile vendored
View File

@@ -52,7 +52,7 @@ pipeline {
PIP_EXTRA_INDEX_URL=${PIP_EXTRA_INDEX_URL:-https://pypi.mandelblog.com/root/pypi/+simple/} \
pip install --no-build-isolation --pre --editable . setuptools wheel --upgrade --upgrade-strategy=eager --use-deprecated=legacy-resolver
cp "${JOB_BASE_NAME}/ocyan.json" "${JOB_BASE_NAME}/${JOB_BASE_NAME}.json"
pip install pylint pylint-django vdt.versionplugin.wheel
pip install ruff vdt.versionplugin.wheel
pip install --upgrade "setuptools==69.5.1" wheel
manage.py migrate --no-input --skip-checks
manage.py loaddemodata --skip-checks || true
@@ -66,8 +66,9 @@ pipeline {
sh '''
. .venv/bin/activate
pip install coverage
pip install ruff
cat mandelstudio/ocyan.json | python3 -m json.tool 1>/dev/null
pylint setup.py mandelstudio/
make lint
'''
}
}

View File

@@ -31,7 +31,9 @@ collectstatic:
lint: fail-if-no-virtualenv
cat mandelstudio/ocyan.json |python3 -m json.tool 1>/dev/null
pylint setup.py mandelstudio/
ruff format --check --exclude "migrations" mandelstudio
ruff check --select I --exclude "migrations" --output-format concise mandelstudio
python -m compileall -q setup.py mandelstudio
black:
@echo "No formatter configured in template; add your preferred formatter here."

View File

@@ -1,7 +1,5 @@
[MASTER]
jobs = 1
load-plugins = pylint_django,pylint_packageinitcheck
django-settings-module = mandelstudio.settings.base
score = n
ignore = migrations