forked from meridianlabs-ai/inspect_harbor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (116 loc) · 3.64 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (116 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "inspect_harbor"
dynamic = ["version"]
description = "Inspect AI interface to Harbor tasks"
authors = [{ name = "Meridian Labs" }]
readme = "README.md"
# Note: harbor package requires Python >=3.12, so we cannot lower this requirement
requires-python = ">=3.12"
license = { text = "MIT License" }
dependencies = ["inspect-ai>=0.3.225", "harbor>=0.17.1,<0.18", "pyyaml"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
[project.urls]
"Source Code" = "https://github.com/meridianlabs-ai/inspect_harbor"
"Issue Tracker" = "https://github.com/meridianlabs-ai/inspect_harbor/issues"
Documentation = "https://meridianlabs-ai.github.io/inspect_harbor/"
[project.entry-points.inspect_ai]
inspect_harbor = "inspect_harbor._registry"
[dependency-groups]
dev = [
"pre-commit",
"pyright",
"pytest",
"pytest-asyncio>=1.3.0",
"pytest-cov",
"ruff",
"types-PyYAML",
{include-group = "doc"},
]
doc = [
"quarto-cli>=1.9.36",
"jupyter",
"panflute",
"markdown",
"griffe>=2",
"pyyaml"
]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/inspect_harbor/_version.py"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build]
only-packages = true
exclude = ["docs/", "tests/"]
[tool.uv]
managed = true
add-bounds = "lower"
default-groups = ["dev"]
# Exclude packages published within the last 7 days to protect against supply chain attacks
exclude-newer = "7 days"
[tool.uv.exclude-newer-package]
inspect-ai = false
# harbor 0.17.1 (published 2026-07-03) is inside the global 7-day window;
# admit it (but nothing newer) until the window catches up, then remove.
harbor = "2026-07-04"
[tool.mypy]
ignore_missing_imports = false
warn_unused_ignores = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = "harbor.*"
ignore_missing_imports = true
[tool.pyright]
include = ["src", "tests"]
extraPaths = ["scripts"]
reportUnknownParameterType = true
[tool.ruff]
extend-exclude = ["docs"]
src = ["."]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # flake8
"D", # pydocstyle
"I", # isort
"B", # flake8-bugbear
"SIM101", # duplicate isinstance
]
ignore = [
"E203", # whitespace before ':'
"E501", # line too long
"D105", # missing docstring in magic method
"D107", # missing docstring in __init__
"D212", # multi-line docstring summary should start at the first line
"D415", # first line should end with a period, question mark, or exclamation point
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.coverage.run]
relative_files = true
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
addopts = "--ignore=tests/manual"
markers = [
"slow: end-to-end tests against live Harbor (run with `pytest tests/manual`)",
]
# Filter deprecation warnings from third-party dependencies
filterwarnings = [
"ignore::pyparsing.PyparsingDeprecationWarning", # pyiceberg's use of pyparsing (harbor → supabase → storage3 → pyiceberg)
"ignore::pydantic.PydanticDeprecatedSince212", # pyiceberg's use of pydantic (harbor → supabase → storage3 → pyiceberg)
"ignore::DeprecationWarning:harbor.models.task.config", # harbor's deprecated field checks (storage vs storage_mb)
]