|
1 | | -[tool.poetry] |
| 1 | +[project] |
2 | 2 | name = "adf_core_python" |
3 | | -version = "0.1.4" |
| 3 | +version = "0.2.0" |
4 | 4 | description = "Agent Development Framework for Python" |
| 5 | +readme = "README.md" |
5 | 6 | authors = [ |
6 | | - "Haruki Uehara <k19016kk@maslab.aitech.ac.jp>", |
7 | | - "Yuki Shimada <shimapaca@maslab.aitech.ac.jp>", |
| 7 | + { name = "Haruki Uehara", email = "k19016kk@maslab.aitech.ac.jp"}, |
| 8 | + { name = "Yuki Shimada", email = "shimapaca@maslab.aitech.ac.jp" } |
| 9 | +] |
| 10 | +requires-python = ">=3.13" |
| 11 | +dependencies = [ |
| 12 | + "bitarray>=3.6.0", |
| 13 | + "click>=8.2.1", |
| 14 | + "jinja2>=3.1.6", |
| 15 | + "protobuf>=6.31.1", |
| 16 | + "pyyaml>=6.0.2", |
| 17 | + "rcrscore", |
| 18 | + "rtree>=1.4.0", |
| 19 | + "scikit-learn>=1.7.1", |
| 20 | + "shapely>=2.1.1", |
| 21 | + "structlog>=25.4.0", |
| 22 | + "types-pyyaml>=6.0.12.20250516", |
8 | 23 | ] |
9 | | -readme = "README.md" |
10 | | -package-mode = true |
11 | | - |
12 | | -[tool.poetry.dependencies] |
13 | | -python = "^3.13" |
14 | | -rcrscore = { git = "https://github.com/adf-python/rcrs-core-python", branch = "improve" } |
15 | | -pyyaml = "^6.0.2" |
16 | | -types-pyyaml = "^6.0.12.20240808" |
17 | | -scikit-learn = "^1.5.2" |
18 | | -structlog = "^24.4.0" |
19 | | -bitarray = "^3.0.0" |
20 | | -shapely = "^2.0.6" |
21 | | -click = "^8.1.7" |
22 | | -jinja2 = "3.1.6" |
23 | | - |
24 | | - |
25 | | -[tool.poetry.group.dev.dependencies] |
26 | | -taskipy = "^1.12.2" |
27 | | -pytest = "^8.3.2" |
28 | | -mypy = "^1.9.0" |
29 | | -types-protobuf = "^4.25.0.20240410" |
30 | | -ruff = "^0.4.4" |
31 | | -sphinx = "^8.1.3" |
32 | | -myst-parser = "^4.0.0" |
33 | | -sphinx-book-theme = "^1.1.3" |
34 | | -sphinx-copybutton = "^0.5.2" |
35 | | -sphinxcontrib-mermaid = "^1.0.0" |
36 | | -sphinx-togglebutton = "^0.3.2" |
37 | | -sphinx-intl = "^2.3.1" |
38 | | -sphinx-rtd-theme = "^3.0.2" |
39 | 24 |
|
40 | 25 | [build-system] |
41 | | -requires = ["poetry-core"] |
42 | | -build-backend = "poetry.core.masonry.api" |
43 | | - |
44 | | -[tool.poetry.scripts] |
45 | | -adf-core-python = "adf_core_python.cli.cli:cli" |
| 26 | +requires = ["uv_build>=0.8.2,<0.9.0"] |
| 27 | +build-backend = "uv_build" |
| 28 | + |
| 29 | +[dependency-groups] |
| 30 | +dev = [ |
| 31 | + "mypy>=1.17.1", |
| 32 | + "myst-parser>=4.0.1", |
| 33 | + "pytest>=8.4.1", |
| 34 | + "ruff>=0.12.5", |
| 35 | + "sphinx>=8.2.3", |
| 36 | + "sphinx-book-theme>=1.1.4", |
| 37 | + "sphinx-copybutton>=0.5.2", |
| 38 | + "sphinx-intl>=2.3.2", |
| 39 | + "sphinx-rtd-theme>=3.0.2", |
| 40 | + "sphinx-togglebutton>=0.3.2", |
| 41 | + "sphinxcontrib-mermaid>=1.0.0", |
| 42 | + "types-protobuf>=6.30.2.20250703", |
| 43 | +] |
46 | 44 |
|
47 | | -[tool.taskipy.tasks] |
48 | | -format = "ruff format ." |
49 | | -lint = "ruff check ." |
50 | | -typecheck = "mypy ." |
51 | | -test = "pytest" |
52 | | -precommit = "task format && task lint && task typecheck && task test" |
53 | 45 |
|
54 | 46 | [tool.ruff] |
55 | 47 | # Exclude a variety of commonly ignored directories. |
@@ -82,11 +74,12 @@ exclude = [ |
82 | 74 | "venv", |
83 | 75 | "pb2", |
84 | 76 | "docs", |
| 77 | + "proto", |
85 | 78 | ] |
86 | 79 |
|
87 | 80 | # Same as Black. |
88 | 81 | line-length = 88 |
89 | | -indent-width = 4 |
| 82 | +indent-width = 2 |
90 | 83 |
|
91 | 84 | # Assume Python 3.12 |
92 | 85 | target-version = "py312" |
@@ -134,10 +127,12 @@ docstring-code-line-length = "dynamic" |
134 | 127 |
|
135 | 128 | [tool.mypy] |
136 | 129 | ignore_missing_imports = true |
137 | | -show_error_context = true # エラー時のメッセージを詳細表示 |
138 | | -show_column_numbers = true # エラー発生箇所の行数/列数を表示 |
139 | | -disallow_untyped_defs = true # 関数定義の引数/戻り値に型アノテーション必須 |
140 | | -no_implicit_optional = true # デフォルト引数に None を取る場合型アノテーションに Optional 必須 |
141 | | -check_untyped_defs = true # 型注釈がない関数やメソッドに対して型チェックを行う |
142 | | -warn_redundant_casts = true # 冗長なキャストに警告 |
143 | | -exclude = ["docs/*"] |
| 130 | +show_error_context = true |
| 131 | +show_column_numbers = true |
| 132 | +disallow_untyped_defs = true |
| 133 | +no_implicit_optional = true |
| 134 | +check_untyped_defs = true |
| 135 | +warn_redundant_casts = true |
| 136 | + |
| 137 | +[tool.uv.sources] |
| 138 | +rcrscore = { git = "https://github.com/adf-python/rcrs-core-python" , tag = "v0.2.0" } |
0 commit comments