AGENTS.md
This repository contains scripts for collecting Prometheus metrics, preprocessing data, training an LSTM autoencoder and detecting anomalies in real time.
Style
- Python 3.12 is the target version.
- Follow PEP8: 4 spaces per indent and keep lines under 100 characters.
- Use type hints and include short docstrings for every function or class.
- Comments and log messages are generally in Russian—keep new ones consistent with this style.
Setup
```bash curl -LsSf [https://astral.sh/uv/install.sh](https://astral.sh/uv/install.sh) | sh ```
```bash uv venv ```
```bash uv pip sync requirements.lock.txt ```
- Packages are managed via `uv`. If you don't have it installed, you can run:
- Before installing, create a virtual environment:
- Install dependencies from the lock file:
Dependencies
- After adding dependencies run `uv pip compile pyproject.toml --extra dev -o requirements.lock.txt`.
Configuration
both in this file and in `README.md`.
- All runtime settings are in `config.yaml`. Document any new configuration keys
Programmatic checks
Before committing changes: 1. Install dependencies: ```bash uv pip sync requirements.lock.txt ``` ```