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
53 changes: 25 additions & 28 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
.PHONY: lint
lint:
# mypy .
black .

.PHONY: test
test: unit-test integration-test

.PHONY: unit-test
unit-test: lint
ifdef key
pytest tests/unit_tests -v -k $(key)
else
pytest tests/unit_tests
endif

.PHONY: integration-test
integration-test: lint
ifdef key
pytest tests/integration_tests -v -k $(key)
else
pytest tests/integration_tests
endif

.PHONY: check
check: lint test integration-test
POETRY := poetry
RUFF := .venv/bin/ruff
PYTEST := .venv/bin/pytest

.PHONY: build
build: lint
poetry build
$(POETRY) build

.PHONY: publish
publish: build
poetry publish --username=__token__ --password=$(INFTYAI_PYPI_TOKEN)
$(POETRY) publish --username=__token__ --password=$(INFTYAI_PYPI_TOKEN)

.PHONY: lint
lint:
$(RUFF) check .

.PHONY: format
format:
$(RUFF) format .
$(RUFF) check --fix .

.PHONY: test
test: lint
$(PYTEST) tests/unit --timeout=15

.PHONY: test-integration
test-integration: lint
$(PYTEST) tests/integration --timeout=30
'
.PHONY: test-all
test-all: test test-integration
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

[![Latest Release](https://img.shields.io/github/v/release/inftyai/amrs?include_prereleases)](https://github.com/inftyai/amrs/releases/latest)

The Adaptive Model Routing System (AMRS) is a cutting-edge framework designed to select the best-fit model for exploration and exploitation.
The Adaptive Model Routing System (AMRS) is a cutting-edge framework designed to select the best-fit model for exploration and exploitation. (still under development)

## Contributions
## Contributing

🚀 All kinds of contributions are welcomed ! Please follow [Contributing](/CONTRIBUTING.md).

[![Star History Chart](https://api.star-history.com/svg?repos=inftyai/amrs&type=Date)](https://www.star-history.com/#inftyai/amrs&Date)
330 changes: 0 additions & 330 deletions poetry.lock

This file was deleted.

38 changes: 24 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,40 @@
[tool.poetry]
[project]
name = "AMRS"
version = "0.0.0"
description = "The adaptive model routing system for exploration and exploitation."
authors = ["InftyAI"]
license = "MIT License"
authors = [
{ name = "InftyAI", email = "contact@inftyai.com" }
]
license = {text = "MIT License"}
readme = "README.md"
requires-python = ">=3.12"

[tool.poetry.dependencies]
python = "^3.10"
dependencies = []

[tool.poetry.group.dev.dependencies]
mypy = "^1.5.1"
black = "^23.9.1"
pytest = "^7.4.2"
[dependency-groups]
dev = [
{include-group = "lint"},
{include-group = "test"}
]
lint = [
"ruff>=0.12",
]
test = [
"pytest>=8.4",
"pytest-asyncio>=0.22",
"pytest-timeout>=2.1",
# Data generation
"faker>=37.12",
]

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.pytest.ini_options]
markers = [
"integration_test: marks tests as integration tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
]

[tool.mypy]
exclude = [
Expand Down
6 changes: 5 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
eval $(poetry env activate)
#!/usr/bin/env bash

uv venv
source .venv/bin/activate
uv sync
File renamed without changes.
186 changes: 186 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading