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 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