Allow to configure pytest-pystack outside the pytests configuration section

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start with pyproject.toml and trace how pytest-pystack reads options from the tool.pytest.ini_options section. Check how that configuration interacts with --strict-config when the plugin is unavailable on non-Linux systems. Done means pytest-pystack can use its own pyproject.toml section without causing strict configuration errors in cross-platform projects.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

Option to set parameters to pystack in ini file (tool.pytest.ini_options section in pyproject.toml) is really nice. But pytest-pystack currently could be installed only on linux. So if a project is designed to work on multiple operating systems, then configuring pytest-pystack this way collides with --strict-config

It will be nice to be able to use strict config and configure pytest-pystack in file at the same time.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Add option to configure pytest-pystack using own section in pyproject.toml

Describe alternatives you've considered

Play with conditional test configuration in tox/nox file.

Dominant language
Python
Stars
21
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bloomberg/pytest-pystack

All issues in bloomberg/pytest-pystack

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.