From 9a80c9d3b411cdc1836df672e40062211c073a19 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Thu, 13 Nov 2025 14:23:27 -0500 Subject: [PATCH 1/2] Checkpoint from VS Code for coding agent session --- agents.md | 32 ++++++++++++++++++++++++++++++++ conftest.py | 3 +++ readthedocs/conftest.py | 3 +-- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 agents.md create mode 100644 conftest.py diff --git a/agents.md b/agents.md new file mode 100644 index 00000000000..ebbdee0c12e --- /dev/null +++ b/agents.md @@ -0,0 +1,32 @@ +# agents.md + +## Fast Linting with uv + +To run all pre-commit linters using uv (fast, isolated): + +```bash +uv pip install pre-commit +uv run -- pre-commit run --all-files --show-diff-on-failure +``` + +This will install pre-commit and run all configured hooks without polluting your global environment. + +## Fast Testing with uv + +To run your test suite using uv (isolated, fast): + +```bash +uv pip install -r requirements/testing.txt +uv run -- pytest +``` + +This installs test dependencies and runs pytest without affecting your global environment. + +### Running specific tests (example) + +To run a specific test (like you would with tox -e py3 -- --no-migrations -k test_project_delete_triggers_pageview_cleanup): + +```bash +uv pip install -r requirements/testing.txt +uv run -- pytest --no-migrations -k test_project_delete_triggers_pageview_cleanup +``` diff --git a/conftest.py b/conftest.py new file mode 100644 index 00000000000..8442507a9d4 --- /dev/null +++ b/conftest.py @@ -0,0 +1,3 @@ +import pytest + +pytest_plugins = ("sphinx.testing.fixtures",) diff --git a/readthedocs/conftest.py b/readthedocs/conftest.py index 8a23a39bcd3..ed3630babc5 100644 --- a/readthedocs/conftest.py +++ b/readthedocs/conftest.py @@ -1,9 +1,8 @@ + import pytest from django.core.cache import cache from rest_framework.test import APIClient -pytest_plugins = ("sphinx.testing.fixtures",) - @pytest.fixture def api_client(): From 5ede5713c6ac2721f511548ebc6b31af74982782 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 13 Nov 2025 19:38:19 +0000 Subject: [PATCH 2/2] Remove unrelated agents.md file Co-authored-by: ericholscher <25510+ericholscher@users.noreply.github.com> --- agents.md | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 agents.md diff --git a/agents.md b/agents.md deleted file mode 100644 index ebbdee0c12e..00000000000 --- a/agents.md +++ /dev/null @@ -1,32 +0,0 @@ -# agents.md - -## Fast Linting with uv - -To run all pre-commit linters using uv (fast, isolated): - -```bash -uv pip install pre-commit -uv run -- pre-commit run --all-files --show-diff-on-failure -``` - -This will install pre-commit and run all configured hooks without polluting your global environment. - -## Fast Testing with uv - -To run your test suite using uv (isolated, fast): - -```bash -uv pip install -r requirements/testing.txt -uv run -- pytest -``` - -This installs test dependencies and runs pytest without affecting your global environment. - -### Running specific tests (example) - -To run a specific test (like you would with tox -e py3 -- --no-migrations -k test_project_delete_triggers_pageview_cleanup): - -```bash -uv pip install -r requirements/testing.txt -uv run -- pytest --no-migrations -k test_project_delete_triggers_pageview_cleanup -```