Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
314 commits
Select commit Hold shift + click to select a range
5b70068
feat: Implement DefaultExtendActionMove class for extending action mo…
shima004 Sep 25, 2024
4693b16
Merge pull request #47 from adf-python/adf/impl/extaction
shima004 Sep 25, 2024
ee1787d
fix: fix wrong type type checking import statement
shima004 Sep 25, 2024
ed2c3a2
Merge pull request #48 from adf-python/fix/wrong-type_checking
shima004 Sep 25, 2024
3c3d812
feat: Update main.py to use AgentLauncher for launching agents
shima004 Sep 25, 2024
c6748ec
feat: Update launch method in main.py to use AgentLauncher
shima004 Sep 25, 2024
ca0e98c
Merge pull request #50 from adf-python/adf/core/main
shima004 Sep 25, 2024
54457c0
feat: Update .gitignore to ignore .idea
harrki Sep 30, 2024
045a889
feat: Add DefaultRoadDetector class
harrki Sep 30, 2024
73e0bbb
fix: DefaultRoadDetector class and dependencies
harrki Sep 30, 2024
a899441
feat: Add scikit-learn dependency to pyproject.toml
shima004 Sep 30, 2024
6935e2e
fix: move directory
shima004 Sep 30, 2024
382a47e
feat: add complex module
shima004 Sep 30, 2024
6a340b6
Merge pull request #51 from adf-python/adf/impl/module/complex_49
shima004 Sep 30, 2024
154f227
feat: Update launch method in main.py to use AgentLauncher
shima004 Sep 30, 2024
9cbd07c
feat: update connector methods to return threading.Thread lists
shima004 Oct 1, 2024
9aafcf7
feat: implement ambulance team
shima004 Oct 1, 2024
533157a
Merge pull request #54 from adf-python/ambulanceteam
shima004 Oct 1, 2024
ef1504d
feat: Add typings for rcrs_core entities, connection, commands, and m…
shima004 Oct 2, 2024
ae4e8fa
Delete unused type stub files
shima004 Oct 2, 2024
17f6f34
refactor: Remove unused Agent class and related imports
shima004 Oct 2, 2024
cdea899
feat: Add pyrightconfig.json for standard type checking mode and excl…
shima004 Oct 2, 2024
2b77855
feat: fix type
shima004 Oct 2, 2024
89f3718
Merge pull request #56 from adf-python/refactor_55
shima004 Oct 2, 2024
c1b8295
fix: .gitignore
harrki Oct 3, 2024
e1c026b
fix: wrong module paths
harrki Oct 3, 2024
4157c4e
fix: create new directory and move astar path planning module
harrki Oct 3, 2024
12610f6
feat: Create target allocator modules
harrki Oct 3, 2024
124245c
fix: Add deprecated message to old functions
harrki Oct 4, 2024
d0c520b
feat: Create default target allocator modules
harrki Oct 4, 2024
9c380ce
Merge branch 'develop' into adf/impl/module/complex
harrki Oct 4, 2024
f3079b8
fix: Fixed inconsistencies from merge request
harrki Oct 8, 2024
981b944
feat: Add structlog dependency
shima004 Oct 8, 2024
682d53a
feat: Add structlog dependency
shima004 Oct 8, 2024
8af12d0
refactor: Reorganize Platoon class initialization and logger setup
shima004 Oct 8, 2024
988d7a4
fix: Fixed some files from suggestions
harrki Oct 9, 2024
302235a
Merge pull request #57 from adf-python/adf/impl/module/complex
harrki Oct 9, 2024
c000530
fix: Fixed gitignore
harrki Oct 9, 2024
fce835c
Merge pull request #58 from adf-python/hotfix/gitignore-idea
harrki Oct 9, 2024
bae36db
fix: Add return type annotation to configure_logger function
shima004 Oct 9, 2024
7bf2896
Merge pull request #59 from adf-python/feature/logger
shima004 Oct 9, 2024
40501b1
refactor: Update AgentInfo class to use Civilian instead of Human for…
shima004 Oct 8, 2024
a234f0b
refactor: Update KMeansClustering to set random_state and rename unse…
shima004 Oct 9, 2024
d97ca89
refactor: Remove type annotations for nearest_human_entity and neares…
shima004 Oct 9, 2024
a24be86
Merge pull request #60 from adf-python/ambulanceteam
shima004 Oct 9, 2024
9b42796
refactor: Simplify entity position handling in DefaultExtendActionMove
shima004 Oct 9, 2024
bb8bf61
refactor: fix typo
shima004 Oct 9, 2024
26da376
refactor: Fix variable name typo from 'neighbour' to 'neighbor' in De…
shima004 Oct 9, 2024
267f3bd
refactor: Fix variable name typo from 'neighbour' to 'neighbor' in De…
shima004 Oct 9, 2024
1b5300c
refactor: Update action method in DefaultTacticsPoliceForce to use se…
shima004 Oct 9, 2024
fd95fce
refactor: Simplify CI workflow by removing redundant virtual environm…
shima004 Oct 9, 2024
a4ac073
refactor: Use environment variables for Python version and cache type…
shima004 Oct 9, 2024
df4d626
refactor: Streamline CI workflow by consolidating Python setup and vi…
shima004 Oct 9, 2024
e3484b8
refactor: Update CI workflow to use Poetry for ruff commands and remo…
shima004 Oct 9, 2024
335acb1
Merge pull request #63 from adf-python/fix/ci
shima004 Oct 9, 2024
aee0c25
fix: Rename modules from ExtAction to ExtendAction
harrki Oct 9, 2024
d8a0885
refactor: Swap action_ext_move and action_ext_clear in DefaultTactics…
shima004 Oct 9, 2024
d4582df
Merge pull request #61 from adf-python/refactor
shima004 Oct 9, 2024
b325cd5
Merge branch 'develop' into fix/rename-extaction
harrki Oct 9, 2024
8fea183
Merge pull request #64 from adf-python/fix/rename-extaction
shima004 Oct 9, 2024
f9004de
ci: Simplify CI workflow by removing poetry activation and setting pa…
shima004 Oct 9, 2024
768a5e6
Merge pull request #65 from adf-python/fix/ci
shima004 Oct 9, 2024
f3beb56
fix: add count reset
shima004 Oct 11, 2024
3011247
fix: update protobuf to version 5.28.2 and adjust Python version comp…
shima004 Oct 17, 2024
eb8340d
feat: Add PoliceForce and FireBrigade modules
harrki Oct 23, 2024
81d869e
Merge pull request #68 from adf-python/adf/impl/extaction/clear_rescue
harrki Oct 23, 2024
f0447f8
feat: add launcher script with argument parsing and configuration setup
shima004 Oct 23, 2024
f77fcd0
fix: fix get config key
shima004 Oct 23, 2024
71ab5aa
docs: add instructions for running the agent and accessing help
shima004 Oct 23, 2024
7652c05
feat: Add PoliceForce and FireBrigade modules
harrki Oct 23, 2024
0a64bec
Merge pull request #69 from adf-python/feature/issue-67
shima004 Oct 23, 2024
b0da5d6
fix: update argument name for ambulance team count in launcher
shima004 Oct 23, 2024
ff1ab55
refactor: remove unnecessary comments
shima004 Oct 23, 2024
23e8e19
fix: Fixed FireBrigade to exec ActionLoad
harrki Oct 23, 2024
cc35acb
Merge pull request #71 from adf-python/fix/default_human_detector
harrki Oct 23, 2024
46ec612
wip
shima004 Oct 23, 2024
70c38fe
refactor: improve logging format in agent connection error handling a…
shima004 Oct 25, 2024
0d6de73
refactor: remove unused import of sys in connection.py
shima004 Oct 25, 2024
9f6b8a8
refactor: add type hints to agent and connection classes
shima004 Oct 25, 2024
865fd7b
refactor: update argument parsing to improve config mapping in launcher
shima004 Oct 25, 2024
bad2e4a
refactor: replace getLogger with custom get_logger in connector classes
shima004 Oct 25, 2024
1284209
Merge pull request #72 from adf-python/feature/agent-launcher_70
shima004 Oct 25, 2024
c800e25
feat: communication module
shima004 Oct 26, 2024
e37bac5
feat: add standard message and priority classes
shima004 Oct 18, 2024
48fa3b3
feat: add info message
shima004 Oct 20, 2024
2b19002
update: package version
shima004 Oct 26, 2024
56a70d5
feat: standard messages
shima004 Oct 29, 2024
d245376
refactor: update hash methods to include return type annotations and …
shima004 Nov 13, 2024
ae093ef
add: __init__ file
shima004 Nov 13, 2024
86f1c27
refactor: remove unused command imports and message additions from De…
shima004 Nov 13, 2024
39f86f9
Merge pull request #73 from adf-python/feature/message
shima004 Nov 13, 2024
31abf3a
chore: update tomli version to 2.1.0 and resolve reference in poetry.…
shima004 Nov 20, 2024
1581d1b
refactor: replace entity references with updated class names for ambu…
shima004 Nov 20, 2024
da037c0
feat: add CLI template and configuration files for agent team setup
shima004 Nov 15, 2024
68f2be0
refactor: rename main function to cli and update script entry point i…
shima004 Nov 15, 2024
89b9fbb
refactor: update placeholder names and file structure for team templates
shima004 Nov 15, 2024
0456552
refactor: update placeholder names and class references in CLI templates
shima004 Nov 20, 2024
a17f233
feat: update team configuration and add main launcher script for CLI
shima004 Nov 21, 2024
b80f8ce
refactor: add type hints to CLI function and update parameter definit…
shima004 Nov 21, 2024
7a3e019
Merge pull request #76 from adf-python/feature/cli
shima004 Nov 21, 2024
c3e4a53
docs: add documentation section with link to ADF Core Python document…
shima004 Nov 21, 2024
3313260
feat: add logging for missing module keys in ModuleManager
shima004 Nov 22, 2024
0c902cd
feat: update launcher configuration and refactor module references fo…
shima004 Nov 23, 2024
78490e3
fix: improve error handling in agent connection and update logging me…
shima004 Nov 23, 2024
70c1f0f
fix: remove intentional division by zero in agent.py
shima004 Nov 23, 2024
c10472e
fix: set logging levels for stdout and file handlers in logger config…
shima004 Nov 24, 2024
4a2e00e
fix: update module references from Sample to Default for human and ro…
shima004 Nov 24, 2024
2f0943a
fix: refactor template copying to use shutil and replace placeholders…
shima004 Nov 28, 2024
30dc904
fix: remove unnecessary blank lines in template copying function
shima004 Nov 28, 2024
02a029b
feat: add Sphinx documentation structure and configuration
shima004 Nov 14, 2024
ea1e428
feat: update GitHub Actions workflow and configuration files to inclu…
shima004 Nov 14, 2024
d5f84b8
feat: update GitHub Actions workflow to add permissions for contents …
shima004 Nov 14, 2024
a5379f3
feat: add Japanese localization and update documentation structure
shima004 Nov 15, 2024
d40a902
fix: update README to correct Sphinx build command
shima004 Nov 18, 2024
72ea86b
feat: add click package and update dependencies in poetry.lock
shima004 Nov 21, 2024
ba09c8e
fix: remove obsolete make command from README
shima004 Nov 21, 2024
0a3970d
feat: add Japanese documentation for clustering module and quickstart…
shima004 Nov 21, 2024
c355188
fix: update Sphinx build command to include the '-a' option for all f…
shima004 Nov 22, 2024
5c68d21
feat: add sphinx-copybutton package to poetry.lock and pyproject.toml
shima004 Nov 22, 2024
0a2186d
feat: rst to markdown
shima004 Nov 22, 2024
d7d2429
fix: remove obsolete example and search documentation files
shima004 Nov 22, 2024
9d717fc
feat: add Japanese documentation for clustering module and remove obs…
shima004 Nov 25, 2024
fb72dac
docs: add warning about package availability in index.rst
shima004 Nov 25, 2024
83b77d8
feat: update Japanese documentation for clustering module and add new…
shima004 Nov 26, 2024
d900ab5
feat: update dependencies and add sphinxcontrib-mermaid package
shima004 Nov 27, 2024
ae6adaa
feat: add agent control tutorial and integrate sphinxcontrib-mermaid …
shima004 Nov 27, 2024
6e0160f
docs: fix lint
shima004 Nov 27, 2024
74df508
docs: correct project name in README.md
shima004 Nov 27, 2024
a677515
docs: update agent control tutorial with entity class details and exa…
shima004 Nov 27, 2024
0b73135
fix
shima004 Nov 28, 2024
f7e5992
docs: add search module documentation and update index
shima004 Nov 28, 2024
4917ee6
docs: update config tutorial with directory structure and file descri…
shima004 Nov 28, 2024
36f1b1e
Merge pull request #75 from adf-python/feature/doc
shima004 Nov 28, 2024
16760a9
docs: update clustering and search module documentation with team-spe…
shima004 Nov 28, 2024
f61b377
Merge pull request #77 from adf-python/fix/docs
shima004 Nov 28, 2024
16733f6
fix: Fixed to copy only necessary files
harrki Nov 28, 2024
92d4da8
fix: Add necessary file
harrki Nov 28, 2024
110fc37
Merge pull request #78 from adf-python/fix/cli-character-set
harrki Nov 28, 2024
98faf84
docs: add sphinx-togglebutton extension and improve search module ent…
shima004 Nov 28, 2024
0423ae5
Merge pull request #79 from adf-python/fix/docs
shima004 Nov 28, 2024
675c110
feat: add get_entity_position method and fix typo in get_blockades me…
shima004 Nov 28, 2024
de25e59
docs: update installation instructions and directory structure in qui…
shima004 Nov 29, 2024
568ef81
Merge pull request #80 from adf-python/fix/docs/import
shima004 Nov 29, 2024
4aab8bb
fix: correct import statement for GasStation entity
shima004 Nov 29, 2024
430b04b
docs: add instructions for downloading tutorial map and update simula…
shima004 Nov 29, 2024
4f5732e
fix: pytest move to dev dependencies
shima004 Nov 29, 2024
66f7148
feat: add office agents for ambulance, fire, and police
shima004 Nov 29, 2024
59704ee
feat: update office agents to include type hints and refactor precomp…
shima004 Nov 29, 2024
7935cef
Merge pull request #81 from adf-python/feature/center
shima004 Nov 29, 2024
b7e4678
fix: Add some information for docs
harrki Nov 29, 2024
8484ab9
fix: Fix incorrect words
harrki Nov 29, 2024
f101ea5
Merge pull request #82 from adf-python/fix/docs-tutorials
harrki Nov 29, 2024
93558d7
fix: Minor fixes
harrki Nov 29, 2024
4f5ab19
Merge pull request #83 from adf-python/fix/docs-tutorials
harrki Nov 29, 2024
aef5243
fix: Add some sentences for docs
harrki Nov 29, 2024
7d0888d
Merge pull request #84 from adf-python/fix/docs-hotfix
harrki Nov 29, 2024
0b91770
fix: Update documentation for clustering and search modules, includin…
shima004 Nov 29, 2024
e9ea0e3
Merge pull request #85 from adf-python/fix/docs/hot-fix
shima004 Nov 29, 2024
f32e24c
fix: Update office agent counts in launcher configuration
shima004 Nov 30, 2024
7f8a6b4
fix: Improve documentation with additional comments and examples for …
shima004 Nov 30, 2024
3571cf6
fix: Add some sentences for installing docs
harrki Nov 30, 2024
d42042c
chore: Add logging and improve documentation in search module
shima004 Nov 30, 2024
afeb9c9
Merge pull request #86 from adf-python/fix/docs-hotfix-installs
harrki Nov 30, 2024
4bc5737
fix: Add environment installing sentences
harrki Nov 30, 2024
13c9aab
Merge pull request #87 from adf-python/fix/docs-environment-install
harrki Nov 30, 2024
7ea87ef
fix: Update connector methods to return a dictionary of threads and e…
shima004 Dec 4, 2024
0e7f894
fix: Update logging levels to debug and add finish_post_connect_event…
shima004 Dec 5, 2024
dabb446
fix: Remove unused time imports and add type hint for connect function
shima004 Dec 5, 2024
30600ae
Merge pull request #88 from adf-python/fix/connect
shima004 Dec 5, 2024
947da28
fix: Set finish_post_connect_event after successful connection and re…
shima004 Dec 5, 2024
8a7d523
Merge pull request #89 from adf-python/fix/connect
shima004 Dec 5, 2024
9507800
fix: Simplify module loading by removing redundant error handling and…
shima004 Dec 5, 2024
7a4a475
WIP
shima004 Dec 4, 2024
c6e13d0
fix: Remove unused AgentError and ServerError classes to streamline e…
shima004 Dec 11, 2024
a0044b4
feat: Add precompute configuration and implement precompute method in…
shima004 Dec 11, 2024
2df0865
fix: Remove unused Mode import from scenario_info in multiple files
shima004 Dec 11, 2024
b674043
fix: Remove precompute method from agent classes and update logging i…
shima004 Dec 12, 2024
93954d7
fix: Update mode attribute to private in Agent class and adjust loggi…
shima004 Dec 12, 2024
b689fa2
fix: Remove unnecessary logging in KMeansClustering and update argume…
shima004 Dec 12, 2024
13db22b
Merge pull request #90 from adf-python/feature/precompute
shima004 Dec 12, 2024
ed14af9
feat: [WIP] add java modules
harrki Dec 5, 2024
c0de854
feat: add gateway modules
harrki Dec 13, 2024
c8d41bf
fix: gateway module error
harrki Dec 13, 2024
95a7020
Merge pull request #91 from adf-python/feature/java_module
harrki Dec 13, 2024
58e2d67
feat:add java's github package ci/cd
harrki Dec 16, 2024
a8fe7f4
Merge pull request #92 from adf-python/feature/java-github-package
harrki Dec 16, 2024
56fee12
fix: java's github package ci/cd
harrki Dec 16, 2024
2f4ccbe
Merge pull request #93 from adf-python/feature/java-github-package
harrki Dec 16, 2024
5cdc74a
feat: Add CommandExecutor, CommandPicker, and DefaultCommandPickerPol…
shima004 Dec 12, 2024
10f26d6
fix: Update agent ID retrieval in command picker classes for consistency
shima004 Dec 15, 2024
524b2a9
feat: Integrate CommandPicker into TacticsCenter and related classes …
shima004 Dec 17, 2024
4c933de
refactor: Remove unused command_type initialization in command execut…
shima004 Dec 17, 2024
8f5ec0b
Merge pull request #94 from adf-python/feature/center
shima004 Dec 17, 2024
cad57bd
refactor: Replace Any with specific types in agent_info and tactics_a…
shima004 Dec 19, 2024
98c1db9
feat: Add versioning support and improve documentation localization
shima004 Dec 19, 2024
d65bf5c
fix: Update pages_root URL for documentation to point to the live site
shima004 Dec 19, 2024
0049e99
V0.1.1
shima004 Dec 20, 2024
2c2628b
feat: Integrate ActionRest to send command messages in Office agent
shima004 Dec 23, 2024
cb57f8e
fix: Update position retrieval and action movement logic in DefaultEx…
shima004 Dec 28, 2024
897bddf
fix: Ensure midpoints are only removed from points if they exist in t…
shima004 Dec 28, 2024
0f19d83
feat: Add support for retrieving paths to multiple destinations in pa…
shima004 Jan 3, 2025
4e820ab
feat: Implement placeholder for get_path_to_multiple_destinations met…
shima004 Jan 3, 2025
08488a8
fix: Update module and action names in ModuleManager and command exec…
shima004 Jan 7, 2025
97cdaf0
feat: ADFコアPythonモジュールのドキュメントの修正
shima004 Feb 21, 2025
8fbb175
feat: ドキュメントワークフローのパスを修正し、英語ドキュメントへのリダイレクトを追加
shima004 Feb 21, 2025
0bece13
feat: ドキュメントのバージョン表示を改善し、テーマを変更
shima004 Feb 21, 2025
9d30da8
update: jinja2 3.1.4 -> 3.1.5
shima004 Feb 21, 2025
91b5d55
chore(deps): bump jinja2 from 3.1.5 to 3.1.6
dependabot[bot] Mar 6, 2025
0ca7f5d
feat: Add Communication Module in Java
harrki Mar 17, 2025
fc7bd5f
Merge pull request #95 from adf-python/dependabot/pip/jinja2-3.1.6
shima004 Mar 18, 2025
daa9c4d
fix: Add Communication Module in Java
harrki Mar 18, 2025
fba0179
fix: Add precompute files
harrki Mar 18, 2025
cb665ae
Merge pull request #96 from adf-python/feature/java-module-comm
harrki Mar 18, 2025
1785a95
feat: Add jitpack
harrki Mar 19, 2025
a0f010e
Merge pull request #97 from adf-python/feature/jitpack
harrki Mar 19, 2025
f822458
fix: パスを修正
shima004 Apr 11, 2025
13060ae
feat: デフォルト設定をサンプル設定に変更
shima004 Apr 11, 2025
d34de0b
feat: バージョンを0.1.2に更新
shima004 Apr 11, 2025
34856e8
Merge pull request #98 from adf-python/fix/cli-template-module
shima004 Apr 11, 2025
edcaf71
feat: カーネル接続の確認機能を追加し、タイムアウト設定を導入
shima004 Apr 14, 2025
cf4dbf9
Merge pull request #100 from adf-python/feature/99
shima004 Apr 15, 2025
02afafe
feat: ログファイルのローテートを削除し、メッセージ送信のデバッグログを削除
shima004 Apr 22, 2025
245d757
Merge pull request #102 from adf-python/feature/101
shima004 Apr 22, 2025
fb480f6
feat: バージョンを0.1.3に更新
shima004 Apr 22, 2025
095fa6e
feat: リソース制限の設定に失敗した場合のエラーメッセージを追加し、バージョンを0.1.4に更新
shima004 May 1, 2025
2f8d61a
chore(deps-dev): bump setuptools from 75.6.0 to 78.1.1
dependabot[bot] May 19, 2025
83c4d9b
chore(deps-dev): bump requests from 2.32.3 to 2.32.4
dependabot[bot] Jun 10, 2025
f59ab88
Merge pull request #104 from adf-python/dependabot/pip/requests-2.32.4
shima004 Jun 12, 2025
404cf0b
Merge pull request #103 from adf-python/dependabot/pip/setuptools-78.1.1
shima004 Jun 12, 2025
5661994
Specify version tag for rcrs_core dependency in pyproject.toml
shima004 Aug 4, 2025
1ddc2e8
feat: バージョンを0.1.4から0.1.5に更新
shima004 Aug 4, 2025
9477e58
Update Python version and rcrs_core dependency in pyproject.toml
shima004 Aug 3, 2025
58a94b7
Refactor code for improved type safety and null handling
shima004 Aug 3, 2025
44d72c5
move: add src file
shima004 Aug 4, 2025
0164235
feat: poetry to uv
shima004 Aug 4, 2025
622574f
chore: format
shima004 Aug 4, 2025
810dfc7
feat: docsディレクトリをmypyの除外リストに追加
shima004 Aug 4, 2025
365e3e0
feat: 型ヒントを追加して関数の明確さを向上
shima004 Aug 4, 2025
1cc2fa6
feat: READMEにPoetryからuvへの移行とPythonバージョンの更新の追加
shima004 Aug 4, 2025
1c6c26d
feat: CIでruffとmypyの実行にuvを使用するように変更
shima004 Aug 4, 2025
d3be3dd
feat: CIの設定をuvを使用するように更新し、キャッシュ管理を最適化
shima004 Aug 4, 2025
d72d84c
feat: CIのセットアップ名から絵文字を削除
shima004 Aug 4, 2025
75a142b
feat: CIジョブ名を小文字に統一し、pytestの設定を追加
shima004 Aug 4, 2025
61f25e3
feat: pytestジョブをCIから削除
shima004 Aug 4, 2025
6e84a3d
Merge pull request #107 from adf-python/feature/use-new-rcrscore
shima004 Aug 4, 2025
b7998ee
feat: precomputeデータを管理するためのPrecomputeDataクラスを追加
shima004 Aug 4, 2025
12aea36
feat: PrecomputeDataクラスのメソッドのインデントを修正
shima004 Aug 4, 2025
0373e70
Merge pull request #108 from adf-python/hotfix/add-precompute
shima004 Aug 4, 2025
3af518e
feat: バージョンを0.2.0から0.2.1に更新
shima004 Aug 4, 2025
d48cfdd
feat: adf-core-pythonのバージョンを0.2.0から0.2.1に更新
shima004 Aug 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
121 changes: 48 additions & 73 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,114 +12,89 @@ on:

jobs:
setup:
name: Setup
runs-on: ubuntu-latest
outputs:
cache-hit: ${{ steps.setup_uv.outputs.cache-hit }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
- name: Install uv (+ enable cache)
id: setup_uv
uses: astral-sh/setup-uv@v6
with:
python-version: 3.12
enable-cache: true

- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Sync dependencies
run: uv sync --locked --dev

- name: Cache virtual environment
uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-venv-

- name: Install dependencies
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install poetry
poetry install
- name: Prune uv cache (optimized for CI)
run: uv cache prune --ci

ruff-format:
name: ruff-format
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Restore virtual environment cache
uses: actions/cache@v4
- name: Install uv + restore cache
uses: astral-sh/setup-uv@v6
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-venv-

- name: Check ruff version
run: |
source .venv/bin/activate
poetry run ruff --version
enable-cache: true

- name: Run ruff format check
run: |
source .venv/bin/activate
poetry run ruff format --check .
- name: Check ruff formatting
run: uv run ruff format --check .

ruff-lint:
name: ruff-lint
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Restore virtual environment cache
uses: actions/cache@v4
- name: Install uv + restore cache
uses: astral-sh/setup-uv@v6
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-venv-

- name: Set up Python environment
run: source .venv/bin/activate

- name: Check ruff version
run: |
source .venv/bin/activate
poetry run ruff --version
enable-cache: true

- name: Run ruff lint
run: |
source .venv/bin/activate
poetry run ruff check --output-format=github .
run: uv run ruff check --output-format=github .

mypy-type-check:
name: mypy-type-check
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Restore virtual environment cache
uses: actions/cache@v4
- name: Install uv + restore cache
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Run mypy
run: uv run --frozen mypy .

publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-venv-

- name: Check mypy version
run: |
source .venv/bin/activate
poetry run mypy --version

- name: Run mypy type check
run: |
source .venv/bin/activate
poetry run mypy .
java-version: "17"
distribution: "temurin"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Publish package
run: cd java && ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70 changes: 70 additions & 0 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: document

on:
workflow_dispatch:
push:
branches:
- main
- develop
paths:
- "docs/**"
pull_request:
branches:
- main
- develop
paths:
- "docs/**"

concurrency:
group: "pages"
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Cache virtual environment
id: cached-virtualenv
uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/uv.lock') }}

- name: Install dependencies
if: steps.cached-virtualenv.outputs.cache-hit != 'true'
run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install uv
uv sync

- name: Build documentation
run: |
source .venv/bin/activate
cd docs
python build.py

- name: Redirect to the en documentation
run: |
username=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 1)
repository=$(echo $GITHUB_REPOSITORY | cut -d '/' -f 2)
echo '<meta http-equiv="refresh" content="0; url=https://'$username'.github.io/'$repository'/en" />' > ./docs/pages/index.html

- name: Deploy documentation
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/pages
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,17 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# 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/
.idea/

# ruff
.ruff_cache/

# vscode
.vscode/

# MacOS
.DS_Store

# ADF
agent.log*
!java/lib/src/main/java/adf_core_python/core/agent/precompute
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.13
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
# adf-core-python

## Documentation

[ADF Core Python Documentation](https://adf-python.github.io/adf-core-python/)

## Development Environment

### Prerequisites

- Python (3.12 or higher)
- Poetry (1.8.3 or higher)
- Python (3.13 or higher)
- uv (0.8.2 or higher)

### Installation

```bash
poetry install
uv sync
```

### Run Agent

```bash
uv run python ./adf_core_python/launcher.py

# get help
uv run python ./adf_core_python/launcher.py -h
```

### Build

```bash
poetry build
uv build
```

### Pre Commit

```bash
poetry run task precommit
uv run ruff format .
uv run ruff check .
uv run mypy .
```
1 change: 0 additions & 1 deletion adf_core_python/main.py

This file was deleted.

3 changes: 3 additions & 0 deletions config/development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"test": "test"
}
44 changes: 44 additions & 0 deletions config/launcher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
kernel:
host: localhost
port: 27931

gateway:
host: localhost
port: 27941

team:
name: AIT-Rescue

adf:
launcher:
precompute: false
debug:
flag: false
agent:
moduleconfig:
filename: config/module.yaml
precompute:
dir_name: precompute

develop:
flag: true
filename: config/development.json

team:
platoon:
ambulance:
count: 100
fire:
count: 100
police:
count: 100
office:
ambulance:
count: 5
fire:
count: 5
police:
count: 5

gateway:
flag: false
Loading
Loading