Files
iform-invenio/.agents/rules/03-python-validation.md
Cian-H 413c85096d Uwsgi (#1)
* Update devenv

* Added uv for python package management

* Clean up gunicorn config artifacts

* Scaffolded site

* Fixed configuration for 13.0

* Added iform config/theme

* Added agent contracts to allow for more automation of work in repo

* Added a local rebuild command to justfile for development

* Fixed deployment persistence issues

* Site polish and deployment streamlining

* Updated justfile to include production deployment commands

* Fixed deployment bugs

* Fixed local test commands
2026-07-16 12:05:06 +01:00

690 B

description, globs, alwaysApply
description globs alwaysApply
Strict LSP and syntax validation rules.
**/*.py
false

Python Validation & Editing Rules

  • Mandatory Planning: Before modifying any files, you must outline the files you intend to touch.
  • LSP Checking: After editing or removing boilerplate, you MUST query the LSP server (e.g., ruff) to check for broken references, undefined variables, or unused imports.
  • Zero Warnings: The file is not considered "clean" until the LSP returns zero warnings for the section you modified.
  • Revert on Failure: If your cleanup causes cascading errors in other files, revert your change and ask the user how they want to proceed.