Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use configuration file defined by COVERAGE_RCFILE environment variable in Python coverage actions. #17844

Open
oxidase opened this issue Mar 22, 2023 · 0 comments · May be fixed by #17842
Open

Comments

@oxidase
Copy link
Contributor

oxidase commented Mar 22, 2023

Description of the feature request:

Python coverage does not allow to modify a generated coverage rcfile with content

[run]
relative_files = True

and it would be nice to have a possibility to use a developer-defined rc file, eg. pyproject.toml, in bazel coverage actions.

What underlying problem are you trying to solve with this feature?

There is no way to specify user-defined coverage settings eg via pyproject.toml file like

[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
    "if 0:",
    "if __name__ ==",
    "raise NotImplementedError",
    "def __repr__",
]
show_missing = true

[tool.coverage.run]
relative_files = true

Which operating system are you running Bazel on?

MacOS

What is the output of bazel info release?

release 6.1.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

https://github.com/oxidase/bazel
a20728b7e1236b18cc9e9201a35f145aeff2277d
6b7e4e4158d7bd09974149aeed23add5d7e2d809

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants