Skip to content

Commit

Permalink
Docs: Add EXCLUDE_PROJECTS option to update-plugin-list.py (pytes…
Browse files Browse the repository at this point in the history
…t-dev#12901)

This allows to exclude specified packages from being listed on the
Pytest Plugin List [1] page.

[1] https://docs.pytest.org/en/latest/reference/plugin_list.html
  • Loading branch information
amotl committed Oct 19, 2024
1 parent 9cc6b50 commit 6e9c664
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/12901.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improved ``update-plugin-list.py`` program by adding ``EXCLUDE_PROJECTS`` mechanism
2 changes: 2 additions & 0 deletions scripts/update-plugin-list.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"flask_fixture",
"databricks-labs-pytester",
}
EXCLUDE_PROJECTS = set()


def escape_rst(text: str) -> str:
Expand Down Expand Up @@ -116,6 +117,7 @@ def pytest_plugin_projects_from_pypi(session: CachedSession) -> dict[str, int]:
if (
(name := p["name"]).startswith(("pytest-", "pytest_"))
or name in ADDITIONAL_PROJECTS
and name not in EXCLUDE_PROJECTS
)
}

Expand Down

0 comments on commit 6e9c664

Please sign in to comment.