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

PytestConfigWarning: Unknown config option: collect_ignore #1376

Closed
amontanez24 opened this issue Apr 14, 2023 · 0 comments · Fixed by #1388
Closed

PytestConfigWarning: Unknown config option: collect_ignore #1376

amontanez24 opened this issue Apr 14, 2023 · 0 comments · Fixed by #1388
Assignees
Labels
internal The issue doesn't change the API or functionality
Milestone

Comments

@amontanez24
Copy link
Contributor

Problem Description

When running pytest we get this warning:

...\sdv-310\lib\site-packages\_pytest\config\__init__.py:1302: PytestConfigWarning: Unknown config option: collect_ignore

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

It seems to be because pytest removed the collect_ignore option that we use here:

SDV/setup.cfg

Lines 49 to 50 in 33f9574

[tool:pytest]
collect_ignore = ['setup.py']

We should remove this and replace with

[tool:pytest]
addopts = --ignore=setup.py
@amontanez24 amontanez24 added the internal The issue doesn't change the API or functionality label Apr 14, 2023
@amontanez24 amontanez24 self-assigned this May 9, 2023
@amontanez24 amontanez24 added this to the 1.1.0 milestone May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal The issue doesn't change the API or functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant