Rainer Gerhards 44a8a00983 python: clean up style and add optional checks
Why:
Make Python style cleanup repeatable without forcing forks or local
agent environments to preinstall the same tools.

Impact:
Python-only style cleanup plus an optional changed-file PR check.
Runtime behavior should be unchanged.

Before/After:
pycodestyle noise was ad hoc. The repo now has a 120-column baseline,
helper, workflow, and dev image support.

Technical Overview:
Normalize tracked Python files with autopep8 and pycodestyle, using
shared setup.cfg configuration.

Add devtools/format-python.sh so local agents can check or
intentionally fix Python formatting when tools are installed.

Add a pull-request workflow that installs pycodestyle and checks only
changed Python files to avoid full-tree style churn.

Document optional local behavior in AGENTS.md and rsyslog agent skills,
including Debian/Ubuntu install guidance.

Add pycodestyle and autopep8 packages to maintained development
container definitions and codex setup.

Register omotel_proxy_server.py in tests/Makefile.am because the
omotel-proxy test uses it.

Validation:
devtools/format-python.sh; actionlint python_style.yml;
git diff --check.

CentOS 7 image has Python 2.7.5; py_compile only failed for
already-Python-3-only files.

Full container CI was intentionally left to the PR matrix.

With the help of AI-Agents: Codex
2026-05-22 11:02:53 +02:00
..