Skip to content

Commit

Permalink
Implement tach to lint module boundaries
Browse files Browse the repository at this point in the history
  • Loading branch information
emdoyle committed Jul 10, 2024
1 parent d12f5f9 commit 118c0ed
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tach-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

name: Tach Check

on: [pull_request]

jobs:
tach-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11' # Specify the version of Python you need

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tach
- name: Run Tach
run: tach check
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ dependencies = [
"requests==2.31.0",
"psutil==5.9.8",
"packaging==23.2",
"termcolor==2.4.0"
"termcolor==2.4.0",
]
[project.optional-dependencies]
dev = [
"pytest==7.4.0",
"requests_mock==1.11.0"
"requests_mock==1.11.0",
"tach==0.6.9",
]
langchain = [
"langchain~=1.19"
Expand Down
95 changes: 95 additions & 0 deletions tach.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/gauge-sh/tach/v0.6.9/public/tach-yml-schema.json
modules:
- path: agentops
depends_on:
- agentops.agent
- agentops.client
- agentops.config
- agentops.decorators
- agentops.event
- agentops.log_config
- agentops.partners
- agentops.session
- path: agentops.agent
depends_on:
- agentops
- agentops.log_config
- path: agentops.client
depends_on:
- agentops.config
- agentops.enums
- agentops.event
- agentops.exceptions
- agentops.helpers
- agentops.host_env
- agentops.llm_tracker
- agentops.log_config
- agentops.meta_client
- agentops.partners
- agentops.session
- path: agentops.config
depends_on:
- agentops.exceptions
- path: agentops.decorators
depends_on:
- agentops
- agentops.client
- agentops.session
- path: agentops.enums
depends_on: []
- path: agentops.event
depends_on:
- agentops.enums
- agentops.helpers
- path: agentops.exceptions
depends_on:
- agentops.log_config
- path: agentops.helpers
depends_on:
- agentops.log_config
- path: agentops.host_env
depends_on:
- agentops.helpers
- agentops.log_config
- path: agentops.http_client
depends_on:
- agentops.log_config
- path: agentops.langchain_callback_handler
depends_on:
- agentops
- agentops.helpers
- path: agentops.llm_tracker
depends_on:
- agentops.event
- agentops.helpers
- agentops.log_config
- agentops.session
- path: agentops.log_config
depends_on: []
- path: agentops.meta_client
depends_on:
- agentops.helpers
- agentops.host_env
- agentops.http_client
- agentops.log_config
- path: agentops.partners
depends_on:
- agentops
- agentops.enums
- agentops.helpers
- agentops.log_config
- path: agentops.session
depends_on:
- agentops.config
- agentops.event
- agentops.helpers
- agentops.http_client
- agentops.log_config
exclude:
- .*__pycache__
- .*egg-info
- docs
- examples
- tests
- venv
source_root: .

0 comments on commit 118c0ed

Please sign in to comment.