Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ freshdata-migrate src/ tests/

---

## Get help

- **Questions:** ask in [GitHub Discussions Q&A](https://github.com/FreshCode-Org/freshdata/discussions/categories/q-a).
- **Bugs:** [open an issue](https://github.com/FreshCode-Org/freshdata/issues/new/choose) with a minimal Polars or pandas snippet and the `plan.to_dict()` output you got.
- **Security reports:** use a [private advisory](https://github.com/FreshCode-Org/freshdata/security/advisories/new), not a public issue.

## Contributing & Issues

Bug reports, benchmark reproductions, and pull requests are welcome.
Expand Down
2 changes: 1 addition & 1 deletion SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Issues are for reproducible bugs and concrete feature requests (there are
templates for both).

**Bugs:** open an issue with the bug template. The single most useful thing
you can include is a minimal DataFrame + the `fd.clean`/`report.summary()`
you can include is a minimal DataFrame + the `fd.suggest_plan(df).to_dict()`
output you got vs expected.

**Security / privacy reports:** do NOT open a public issue. Use
Expand Down
28 changes: 28 additions & 0 deletions tests/test_help_links.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""A new user must find where to ask a question, and the help text must name real APIs."""

import pathlib
import re

import freshdata as fd

ROOT = pathlib.Path(__file__).resolve().parents[1]
REPO = "https://github.com/FreshCode-Org/freshdata"


def test_readme_links_to_question_and_bug_channels() -> None:
readme = (ROOT / "README.md").read_text(encoding="utf-8")
assert f"]({REPO}/discussions/categories/q-a)" in readme
assert f"]({REPO}/issues/new/choose)" in readme


def test_help_text_names_only_public_api() -> None:
files = [ROOT / "SUPPORT.md", *(ROOT / ".github" / "ISSUE_TEMPLATE").glob("*.yml")]
for path in files:
text = path.read_text(encoding="utf-8")
for name in re.findall(r"\bfd\.(\w+)", text):
assert name in fd.__all__, (
f"{path.name} names fd.{name}, which freshdata does not export"
)
assert "report.summary()" not in text, (
f"{path.name} names CleanReport.summary(), which does not exist"
)
Loading