From c12c29efab9ccf020201e4189bcc66a22105bb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Brand=C3=A3o?= Date: Thu, 11 Sep 2025 15:34:15 -0700 Subject: [PATCH 1/2] Adding pre-commit hooks --- .pre-commit-config.yaml | 10 ++++++++++ dev_dependencies.txt | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..a2df70ee --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +repos: +- repo: https://github.com/psf/black + rev: 22.3.0 # Use the latest stable version of Black + hooks: + - id: black + args: [--line-length=88] # Adjust line length as needed +- repo: https://github.com/pycqa/flake8 + rev: 7.2.0 # pick a git hash / tag to point to + hooks: + - id: flake8 \ No newline at end of file diff --git a/dev_dependencies.txt b/dev_dependencies.txt index a90a4dcd..f1e775ef 100644 --- a/dev_dependencies.txt +++ b/dev_dependencies.txt @@ -1,3 +1,4 @@ pytest pytest-asyncio -pytest-mock \ No newline at end of file +pytest-mock +pre-commit \ No newline at end of file From b0d937bfb1b364658c30b8bdde482e6af6c78286 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Brand=C3=A3o?= Date: Thu, 11 Sep 2025 15:44:23 -0700 Subject: [PATCH 2/2] Adding setup file for development --- dev_setup.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dev_setup.ps1 diff --git a/dev_setup.ps1 b/dev_setup.ps1 new file mode 100644 index 00000000..bd603070 --- /dev/null +++ b/dev_setup.ps1 @@ -0,0 +1,16 @@ +python -m venv venv + +. .\venv\Scripts\Activate.ps1 + +pip install -e ./libraries/microsoft-agents-activity/ --config-settings editable_mode=compat +pip install -e ./libraries/microsoft-agents-authentication-msal/ --config-settings editable_mode=compat +pip install -e ./libraries/microsoft-agents-copilotstudio-client/ --config-settings editable_mode=compat +pip install -e ./libraries/microsoft-agents-hosting-aiohttp/ --config-settings editable_mode=compat +pip install -e ./libraries/microsoft-agents-hosting-core/ --config-settings editable_mode=compat +pip install -e ./libraries/microsoft-agents-hosting-teams/ --config-settings editable_mode=compat +pip install -e ./libraries/microsoft-agents-storage-blob/ --config-settings editable_mode=compat +pip install -e ./libraries/microsoft-agents-storage-cosmos/ --config-settings editable_mode=compat + +pip install -r dev_dependencies.txt + +pre-commit install \ No newline at end of file