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
3 changes: 3 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ jobs:

- name: Type check Python code
run: uv run mypy src

- name: Check package build
run: uv build --verbose
56 changes: 44 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cat-ai"
version = "0.0.5-alpha"
version = "0.0.6"
description = "Python client for running CAT tests in a Python codebase"
authors = [
{ name = "Mike Gehard", email = "[email protected]" },
Expand All @@ -10,16 +10,15 @@ authors = [
{ name = "Tim Kersey", email = "[email protected]" },
{ name = "Michael Harris", email = "[email protected]" },
]
requires-python = "~=3.13"
requires-python = ">=3.13"
readme = "README.md"
dependencies = [
# this small library should be kept independent
# consider adding dependencies to on of the dependency groups
# consider adding dependencies to one of the dependency groups
]
packages = [{ include = "cat_ai", from = "src" }]
license = "MIT"
license = { file = "LICENSE"}

[dependency-groups]
[project.optional-dependencies]
test = [
"matplotlib>=3.10.1",
"pytest>=8.3.4,<9",
Expand All @@ -40,14 +39,41 @@ dev = [
"pytest-timeout>=2.3.1",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/cat_ai"]

[dependency-groups]
test = [
"matplotlib>=3.10.1",
"pytest>=8.3.4,<9",
"pytest-asyncio>=0.21.0,<0.22",
"mypy>=1.8.0,<2",
"pytest-snapshot>=0.9.0",
]
examples = ["openai>=1.63.2,<2", "python-dotenv>=1.0.1,<2"]
dev = [
"sphinx>=8.1.3,<9",
"sphinx-rtd-theme>=3.0.2,<4",
"sphinx-markdown-builder>=0.6.8,<0.7",
"notebook>=7.3.2",
"pydrive2>=1.21.3,<2",
"pydantic>=2.10.6,<3",
"ruff>=0.9.10",
"pytest-timeout>=2.3.1",
]

[tool.uv]
default-groups = ["test", "examples", "dev"]

[tool.pytest.ini_options]
asyncio_mode = "auto"
pythonpath = [".", "src"]
testpaths = ["tests"]
faulthandler_timeout="100"
faulthandler_timeout = "100"

[tool.mypy]
python_version = "3.13"
Expand All @@ -71,9 +97,15 @@ target-version = ['py313']
include = '\.pyi?$'

[tool.ruff]
# Rule selection and configuration
line-length = 100
lint.extend-ignore = ["E203"]
# Equivalent to max-complexity
lint.mccabe = { max-complexity = 10 }
exclude = [".git", "__pycache__", "build", "dist"]
target-version = "py313"

[tool.ruff.lint]
extend-ignore = ["E203"]
select = ["E", "F", "B", "I"]

[tool.ruff.lint.mccabe]
max-complexity = 10

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
51 changes: 46 additions & 5 deletions uv.lock

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