From abcdfc4c089e2f635bf611a18bbc3eeb99ddeca3 Mon Sep 17 00:00:00 2001 From: silverpill Date: Mon, 23 Mar 2026 17:39:17 +0100 Subject: [PATCH] Fix tests (#802) There was a conflict between `create_site_pages.py` and `pytest`. The former added python files to `docs` and `build` directories, causing `pytest scripts` to fail. Reviewed-on: https://codeberg.org/fediverse/fep/pulls/802 Reviewed-by: helge Co-authored-by: silverpill Co-committed-by: silverpill --- scripts/README.md | 2 +- scripts/pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/README.md b/scripts/README.md index 1fc9ad6..53f2bb4 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -47,5 +47,5 @@ pip install pytest Check validity ```bash -pytest +pytest scripts/ ``` diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml index f6eff7d..bb9b634 100644 --- a/scripts/pyproject.toml +++ b/scripts/pyproject.toml @@ -17,3 +17,6 @@ dependencies = [ [tool.setuptools] packages = ["fep_tools"] + +[tool.pytest.ini_options] +norecursedirs = ["docs", "build"] \ No newline at end of file