From 699073da158114b05d1c76a0273682da93fe4b39 Mon Sep 17 00:00:00 2001 From: Wang Boyu Date: Sun, 14 Sep 2025 14:53:25 -0400 Subject: [PATCH 1/2] update links for repository transfer --- .github/ISSUE_TEMPLATE/asking-help.md | 4 ++-- .github/workflows/release.yml | 2 +- CONTRIBUTING.md | 10 +++++----- README.md | 14 +++++++------- docs/index.md | 14 +++++++------- pyproject.toml | 4 ++-- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/asking-help.md b/.github/ISSUE_TEMPLATE/asking-help.md index e8cc032..ae7f54d 100644 --- a/.github/ISSUE_TEMPLATE/asking-help.md +++ b/.github/ISSUE_TEMPLATE/asking-help.md @@ -1,9 +1,9 @@ --- name: Asking for help -about: If you need help using Mesa-LLM, you should post in https://github.com/wang-boyu/mesa-llm/discussions +about: If you need help using Mesa-LLM, you should post in https://github.com/projectmesa/mesa-llm/discussions --- \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff98a80..272b93e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: - name: Build distributions run: python -m build - name: Upload package as artifact to GitHub - if: github.repository == 'wang-boyu/mesa-llm' && startsWith(github.ref, 'refs/tags') + if: github.repository == 'projectmesa/mesa-llm' && startsWith(github.ref, 'refs/tags') uses: actions/upload-artifact@v4 with: name: package diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 95a4df8..eb3b030 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,8 +11,8 @@ In no particular order, examples include: - Documentation improvements - Tutorials -[Mesa-LLM discussions]: https://github.com/wang-boyu/mesa-llm/discussions -[issue]: https://github.com/wang-boyu/mesa-llm/issues +[Mesa-LLM discussions]: https://github.com/projectmesa/mesa-llm/discussions +[issue]: https://github.com/projectmesa/mesa-llm/issues **To submit a contribution** @@ -33,7 +33,7 @@ In no particular order, examples include: - Describe the change w/ ticket number(s) that the code fixes. [Clone your repository]: https://help.github.com/articles/cloning-a-repository/ -[GH Actions build]: https://github.com/wang-boyu/mesa-llm/actions/workflows/ci.yml +[GH Actions build]: https://github.com/projectmesa/mesa-llm/actions/workflows/ci.yml [Create a pull request]: https://help.github.com/articles/creating-a-pull-request/ [pre-commit]: https://github.com/pre-commit/pre-commit [black]: https://github.com/psf/black @@ -41,7 +41,7 @@ In no particular order, examples include: Testing and Code Standards -------------------------- -[![](https://codecov.io/gh/wang-boyu/mesa-llm/branch/main/graph/badge.svg)](https://codecov.io/gh/wang-boyu/mesa-llm) [![](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) +[![](https://codecov.io/gh/projectmesa/mesa-llm/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-llm) [![](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) As part of our contribution process, we practice continuous integration and use GH Actions to help enforce best practices. @@ -81,7 +81,7 @@ Licensing The license of this project is located in [LICENSE]. By submitting a contribution to this project, you are agreeing that your contribution will be released under the terms of this license. -[LICENSE]: https://github.com/wang-boyu/mesa-llm/blob/main/LICENSE +[LICENSE]: https://github.com/projectmesa/mesa-llm/blob/main/LICENSE Special Thanks -------------- diff --git a/README.md b/README.md index f065201..2d032e5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ | | | | --- | --- | -| CI/CD | [![GitHub CI](https://github.com/wang-boyu/mesa-llm/workflows/build/badge.svg)](https://github.com/wang-boyu/mesa-llm/actions) [![Read the Docs](https://readthedocs.org/projects/mesa-llm/badge/?version=stable)](https://mesa-llm.readthedocs.io/stable) [![Codecov](https://codecov.io/gh/wang-boyu/mesa-llm/branch/main/graph/badge.svg)](https://codecov.io/gh/wang-boyu/mesa-llm) | +| CI/CD | [![GitHub CI](https://github.com/projectmesa/mesa-llm/workflows/build/badge.svg)](https://github.com/projectmesa/mesa-llm/actions) [![Read the Docs](https://readthedocs.org/projects/mesa-llm/badge/?version=stable)](https://mesa-llm.readthedocs.io/stable) [![Codecov](https://codecov.io/gh/projectmesa/mesa-llm/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-llm) | | Package | [![PyPI](https://img.shields.io/pypi/v/mesa-llm.svg)](https://pypi.org/project/mesa-llm) [![PyPI - License](https://img.shields.io/pypi/l/mesa-llm)](https://pypi.org/project/mesa-llm/) [![PyPI - Downloads](https://img.shields.io/pypi/dw/mesa-llm)](https://pypistats.org/packages/mesa-llm) | | Meta | [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) | | Chat | [![chat](https://img.shields.io/matrix/mesa-llm:matrix.org?label=chat&logo=Matrix)](https://matrix.to/#/#mesa-llm:matrix.org) | @@ -26,7 +26,7 @@ pip install -U --pre mesa-llm You can also use `pip` to install the GitHub version: ```bash -pip install -U -e git+https://github.com/wang-boyu/mesa-llm.git#egg=mesa-llm +pip install -U -e git+https://github.com/projectmesa/mesa-llm.git#egg=mesa-llm ``` Or any other (development) branch on this repo or your own fork: @@ -38,7 +38,7 @@ For more help on using Mesa-LLM, check out the following resources: - [Introductory Tutorial](http://mesa-llm.readthedocs.io/stable/tutorials/intro_tutorial.html) - [Docs](http://mesa-llm.readthedocs.io/stable/) -- [Mesa-LLM Discussions](https://github.com/wang-boyu/mesa-llm/discussions) +- [Mesa-LLM Discussions](https://github.com/projectmesa/mesa-llm/discussions) - [PyPI](https://pypi.org/project/mesa-llm/) ## Using Mesa-LLM @@ -60,12 +60,12 @@ Want to join the team or just curious about what is happening with Mesa & Mesa-L * Join our [Matrix chat room](https://matrix.to/#/#mesa-llm:matrix.org) in which questions, issues, and ideas can be (informally) discussed. * Come to a monthly dev session (you can find dev session times, agendas and notes at [Mesa discussions](https://github.com/projectmesa/mesa/discussions). - * Just check out the code at [GitHub](https://github.com/wang-boyu/mesa-llm/). + * Just check out the code at [GitHub](https://github.com/projectmesa/mesa-llm/). -If you run into an issue, please file a [ticket](https://github.com/wang-boyu/mesa-llm/issues) for us to discuss. If possible, follow up with a pull request. +If you run into an issue, please file a [ticket](https://github.com/projectmesa/mesa-llm/issues) for us to discuss. If possible, follow up with a pull request. -If you would like to add a feature, please reach out via [ticket](https://github.com/wang-boyu/mesa-llm/issues) or join a dev session (see [Mesa discussions](https://github.com/projectmesa/mesa/discussions)). +If you would like to add a feature, please reach out via [ticket](https://github.com/projectmesa/mesa-llm/issues) or join a dev session (see [Mesa discussions](https://github.com/projectmesa/mesa/discussions)). A feature is most likely to be added if you build it! -Don't forget to check out the [Contributors guide](https://github.com/wang-boyu/mesa-llm/blob/main/CONTRIBUTING.md). +Don't forget to check out the [Contributors guide](https://github.com/projectmesa/mesa-llm/blob/main/CONTRIBUTING.md). diff --git a/docs/index.md b/docs/index.md index 6f9120b..88a6463 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,7 @@ | | | | --- | --- | -| CI/CD | [![GitHub CI](https://github.com/wang-boyu/mesa-llm/workflows/build/badge.svg)](https://github.com/wang-boyu/mesa-llm/actions) [![Read the Docs](https://readthedocs.org/projects/mesa-llm/badge/?version=stable)](https://mesa-llm.readthedocs.io/stable) [![Codecov](https://codecov.io/gh/wang-boyu/mesa-llm/branch/main/graph/badge.svg)](https://codecov.io/gh/wang-boyu/mesa-llm) | +| CI/CD | [![GitHub CI](https://github.com/projectmesa/mesa-llm/workflows/build/badge.svg)](https://github.com/projectmesa/mesa-llm/actions) [![Read the Docs](https://readthedocs.org/projects/mesa-llm/badge/?version=stable)](https://mesa-llm.readthedocs.io/stable) [![Codecov](https://codecov.io/gh/projectmesa/mesa-llm/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-llm) | | Package | [![PyPI](https://img.shields.io/pypi/v/mesa-llm.svg)](https://pypi.org/project/mesa-llm) [![PyPI - License](https://img.shields.io/pypi/l/mesa-llm)](https://pypi.org/project/mesa-llm/) [![PyPI - Downloads](https://img.shields.io/pypi/dw/mesa-llm)](https://pypistats.org/packages/mesa-llm) | | Meta | [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) | | Chat | [![chat](https://img.shields.io/matrix/mesa-llm:matrix.org?label=chat&logo=Matrix)](https://matrix.to/#/#mesa-llm:matrix.org) | @@ -26,7 +26,7 @@ pip install -U --pre mesa-llm You can also use `pip` to install the GitHub version: ```bash -pip install -U -e git+https://github.com/wang-boyu/mesa-llm.git#egg=mesa-llm +pip install -U -e git+https://github.com/projectmesa/mesa-llm.git#egg=mesa-llm ``` Or any other (development) branch on this repo or your own fork: @@ -38,7 +38,7 @@ For more help on using Mesa-LLM, check out the following resources: - [Introductory Tutorial](http://mesa-llm.readthedocs.io/stable/tutorials/intro_tutorial.html) - [Docs](http://mesa-llm.readthedocs.io/stable/) -- [Mesa-LLM Discussions](https://github.com/wang-boyu/mesa-llm/discussions) +- [Mesa-LLM Discussions](https://github.com/projectmesa/mesa-llm/discussions) - [PyPI](https://pypi.org/project/mesa-llm/) ## Contributing to Mesa-LLM @@ -47,15 +47,15 @@ Want to join the team or just curious about what is happening with Mesa & Mesa-L * Join our [Matrix chat room](https://matrix.to/#/#mesa-llm:matrix.org) in which questions, issues, and ideas can be (informally) discussed. * Come to a monthly dev session (you can find dev session times, agendas and notes at [Mesa discussions](https://github.com/projectmesa/mesa/discussions). - * Just check out the code at [GitHub](https://github.com/wang-boyu/mesa-llm/). + * Just check out the code at [GitHub](https://github.com/projectmesa/mesa-llm/). -If you run into an issue, please file a [ticket](https://github.com/wang-boyu/mesa-llm/issues) for us to discuss. If possible, follow up with a pull request. +If you run into an issue, please file a [ticket](https://github.com/projectmesa/mesa-llm/issues) for us to discuss. If possible, follow up with a pull request. -If you would like to add a feature, please reach out via [ticket](https://github.com/wang-boyu/mesa-llm/issues) or join a dev session (see [Mesa discussions](https://github.com/projectmesa/mesa/discussions)). +If you would like to add a feature, please reach out via [ticket](https://github.com/projectmesa/mesa-llm/issues) or join a dev session (see [Mesa discussions](https://github.com/projectmesa/mesa/discussions)). A feature is most likely to be added if you build it! -Don't forget to check out the [Contributors guide](https://github.com/wang-boyu/mesa-llm/blob/main/CONTRIBUTING.md). +Don't forget to check out the [Contributors guide](https://github.com/projectmesa/mesa-llm/blob/main/CONTRIBUTING.md). diff --git a/pyproject.toml b/pyproject.toml index 9340832..977ced1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,8 +51,8 @@ docs = [ ] [project.urls] -homepage = "https://github.com/wang-boyu/mesa-llm" -repository = "https://github.com/wang-boyu/mesa-llm" +homepage = "https://github.com/projectmesa/mesa-llm" +repository = "https://github.com/projectmesa/mesa-llm" [tool.hatch.build.targets.wheel] packages = ["mesa_llm"] From 156afec3d1dcd550ef7700abde68752e17d6a603 Mon Sep 17 00:00:00 2001 From: Wang Boyu Date: Sun, 14 Sep 2025 14:56:20 -0400 Subject: [PATCH 2/2] fix ruff checks --- tests/test_reasoning/test_cot.py | 2 +- tests/test_reasoning/test_react.py | 4 ++-- tests/test_reasoning/test_rewoo.py | 2 +- tests/test_tools/test_inbuilt_tools.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_reasoning/test_cot.py b/tests/test_reasoning/test_cot.py index 473a582..da0a523 100644 --- a/tests/test_reasoning/test_cot.py +++ b/tests/test_reasoning/test_cot.py @@ -142,7 +142,7 @@ def test_plan_no_prompt_error(self): obs = Observation(step=1, self_state={}, local_state={}) with pytest.raises( - ValueError, match="No prompt provided and agent.step_prompt is None" + ValueError, match=r"No prompt provided and agent.step_prompt is None" ): reasoning.plan(obs=obs) diff --git a/tests/test_reasoning/test_react.py b/tests/test_reasoning/test_react.py index fdc0ace..2de01c5 100644 --- a/tests/test_reasoning/test_react.py +++ b/tests/test_reasoning/test_react.py @@ -150,7 +150,7 @@ def test_plan_no_prompt_error(self): obs = Observation(step=1, self_state={}, local_state={}) with pytest.raises( - ValueError, match="No prompt provided and agent.step_prompt is None" + ValueError, match=r"No prompt provided and agent.step_prompt is None" ): reasoning.plan(obs=obs) @@ -200,6 +200,6 @@ def test_aplan_no_prompt_error(self): obs = Observation(step=1, self_state={}, local_state={}) with pytest.raises( - ValueError, match="No prompt provided and agent.step_prompt is None" + ValueError, match=r"No prompt provided and agent.step_prompt is None" ): asyncio.run(reasoning.aplan(obs=obs)) diff --git a/tests/test_reasoning/test_rewoo.py b/tests/test_reasoning/test_rewoo.py index f7f8f29..4401537 100644 --- a/tests/test_reasoning/test_rewoo.py +++ b/tests/test_reasoning/test_rewoo.py @@ -202,7 +202,7 @@ def test_plan_no_prompt_error(self): reasoning = ReWOOReasoning(mock_agent) with pytest.raises( - ValueError, match="No prompt provided and agent.step_prompt is None" + ValueError, match=r"No prompt provided and agent.step_prompt is None" ): reasoning.plan() diff --git a/tests/test_tools/test_inbuilt_tools.py b/tests/test_tools/test_inbuilt_tools.py index 7156f30..f9a89f5 100644 --- a/tests/test_tools/test_inbuilt_tools.py +++ b/tests/test_tools/test_inbuilt_tools.py @@ -98,7 +98,7 @@ def test_speak_to_records_on_recipients(mocker): r2.memory.add_to_memory.assert_called_once() # Verify payload structure for one recipient - args, kwargs = r1.memory.add_to_memory.call_args + _, kwargs = r1.memory.add_to_memory.call_args assert kwargs["type"] == "message" content = kwargs["content"] assert content["message"] == message