bloomberg / bloomberg/pytest-memray

Having a general/default limit_memory setting

Open
#156 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
423
Forks
39
Avg merge
5h 19m
Merged PRs (30d)
1

Description

## Feature Request

I would like to prevent people adding tests that take up too much memory.

Thus I would like to set a global `limit_memory` setting, that would be overwritten locally by the decorator.

It may not enabled by default but only when being executed with `--memray` (or toggled on/off via a new arg).

Cheers and thanks for the great plugin!

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing limit_memory decorator and the --memray entry point. Trace how settings are read and applied, then determine how a global limit should interact with a local decorator override and whether activation is tied to --memray or a new argument. Done means the behavior is covered by the plugin's existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.