diff --git a/arcade/arcade/templates/{{ toolkit_name }}/.editorconfig b/arcade/arcade/templates/{{ toolkit_name }}/.editorconfig index 4f001bfb..d6eca0eb 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/.editorconfig +++ b/arcade/arcade/templates/{{ toolkit_name }}/.editorconfig @@ -12,3 +12,4 @@ max_line_length = 100 # This is also set in .ruff.toml for ruff [*.{json,jsonc,yml,yaml}] indent_style = space indent_size = 2 # This is also set in .prettierrc.toml + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/.gitignore b/arcade/arcade/templates/{{ toolkit_name }}/.gitignore index 26644de0..3843d043 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/.gitignore +++ b/arcade/arcade/templates/{{ toolkit_name }}/.gitignore @@ -164,3 +164,4 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/.pre-commit-config.yaml b/arcade/arcade/templates/{{ toolkit_name }}/.pre-commit-config.yaml index 3953e996..9fcd4018 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/.pre-commit-config.yaml +++ b/arcade/arcade/templates/{{ toolkit_name }}/.pre-commit-config.yaml @@ -16,3 +16,4 @@ repos: - id: ruff args: [--fix] - id: ruff-format + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/.prettierignore b/arcade/arcade/templates/{{ toolkit_name }}/.prettierignore index ae715301..7bc9c651 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/.prettierignore +++ b/arcade/arcade/templates/{{ toolkit_name }}/.prettierignore @@ -1,2 +1,3 @@ # Ignore Python files for Prettier *.py + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/.prettierrc.toml b/arcade/arcade/templates/{{ toolkit_name }}/.prettierrc.toml index 3f1ac43d..6532bbb1 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/.prettierrc.toml +++ b/arcade/arcade/templates/{{ toolkit_name }}/.prettierrc.toml @@ -13,3 +13,4 @@ files = [ "*.json", "*.jsonc", "*.yml", "*.yaml" ] [overrides.options] tabWidth = 2 + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/.ruff.toml b/arcade/arcade/templates/{{ toolkit_name }}/.ruff.toml index 36a7a4ed..d745a6e6 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/.ruff.toml +++ b/arcade/arcade/templates/{{ toolkit_name }}/.ruff.toml @@ -42,3 +42,4 @@ select = [ [format] preview = true skip-magic-trailing-comma = false + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/LICENSE b/arcade/arcade/templates/{{ toolkit_name }}/LICENSE index 6a779d1b..0e1b63bf 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/LICENSE +++ b/arcade/arcade/templates/{{ toolkit_name }}/LICENSE @@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/Makefile b/arcade/arcade/templates/{{ toolkit_name }}/Makefile index 48f7ff6b..4c1eb724 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/Makefile +++ b/arcade/arcade/templates/{{ toolkit_name }}/Makefile @@ -51,3 +51,4 @@ check: ## Run code quality tools. @poetry run pre-commit run -a @echo "🚀 Static type checking: Running mypy" @poetry run mypy --config-file=pyproject.toml + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/README.md b/arcade/arcade/templates/{{ toolkit_name }}/README.md index b9ef18c2..39351f5c 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/README.md +++ b/arcade/arcade/templates/{{ toolkit_name }}/README.md @@ -71,3 +71,4 @@ ```bash arcade evals --host localhost --details ``` + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/codecov.yaml b/arcade/arcade/templates/{{ toolkit_name }}/codecov.yaml index 058cfb76..b5647d98 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/codecov.yaml +++ b/arcade/arcade/templates/{{ toolkit_name }}/codecov.yaml @@ -7,3 +7,4 @@ coverage: default: target: 90% threshold: 0.5% + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/evals/eval_{{ toolkit_name }}.py b/arcade/arcade/templates/{{ toolkit_name }}/evals/eval_{{ toolkit_name }}.py index 8d768d3a..cee5c4cc 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/evals/eval_{{ toolkit_name }}.py +++ b/arcade/arcade/templates/{{ toolkit_name }}/evals/eval_{{ toolkit_name }}.py @@ -36,12 +36,7 @@ def {{ toolkit_name }}_eval_suite() -> EvalSuite: suite.add_case( name="Saying hello", user_message="He's actually right here, say hi to him!", - expected_tool_calls=[ - ExpectedToolCall( - func=say_hello, - args={"name": "John Doe"} - ) - ], + expected_tool_calls=[ExpectedToolCall(func=say_hello, args={"name": "John Doe"})], rubric=rubric, critics=[ SimilarityCritic(critic_field="name", weight=0.5), diff --git a/arcade/arcade/templates/{{ toolkit_name }}/pyproject.toml b/arcade/arcade/templates/{{ toolkit_name }}/pyproject.toml index adbfe192..44db933b 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/pyproject.toml +++ b/arcade/arcade/templates/{{ toolkit_name }}/pyproject.toml @@ -37,3 +37,4 @@ testpaths = ["tests"] [tool.coverage.report] skip_empty = true + diff --git a/arcade/arcade/templates/{{ toolkit_name }}/tests/test_{{ toolkit_name }}.py b/arcade/arcade/templates/{{ toolkit_name }}/tests/test_{{ toolkit_name }}.py index 9c244304..95d82df1 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/tests/test_{{ toolkit_name }}.py +++ b/arcade/arcade/templates/{{ toolkit_name }}/tests/test_{{ toolkit_name }}.py @@ -7,6 +7,7 @@ from {{ package_name }}.tools.hello import say_hello def test_hello() -> None: assert say_hello("developer") == "Hello, developer!" + def test_hello_raises_error() -> None: with pytest.raises(ToolExecutionError): say_hello(1) diff --git a/arcade/arcade/templates/{{ toolkit_name }}/tox.ini b/arcade/arcade/templates/{{ toolkit_name }}/tox.ini index fc0917c3..fdc472ec 100644 --- a/arcade/arcade/templates/{{ toolkit_name }}/tox.ini +++ b/arcade/arcade/templates/{{ toolkit_name }}/tox.ini @@ -14,4 +14,4 @@ allowlist_externals = poetry commands = poetry install -v --all-extras pytest --doctest-modules tests --cov --cov-config=pyproject.toml --cov-report=xml -# mypy +