File tree 4 files changed +31
-12
lines changed
4 files changed +31
-12
lines changed Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/astral-sh/ruff-pre-commit
3
+ rev : v0.3.0
4
+ hooks :
5
+ - id : ruff
6
+ args : [--fix]
7
+ - id : ruff-format
8
+ - repo : https://github.com/pre-commit/mirrors-mypy
9
+ rev : v1.8.0
10
+ hooks :
11
+ - id : mypy
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class ConfigFile(BaseModel):
36
36
The default model to use when generating agent configurations.
37
37
"""
38
38
39
- framework : Optional [ str ] = DEFAULT_FRAMEWORK
39
+ framework : str = DEFAULT_FRAMEWORK
40
40
tools : list [str ] = []
41
41
telemetry_opt_out : Optional [bool ] = None
42
42
default_model : Optional [str ] = None
Original file line number Diff line number Diff line change 1
- from typing import Optional
2
-
3
- import os
4
- import sys
1
+ from typing import Optional , Union
2
+ from importlib .abc import Traversable
3
+ import os , sys
5
4
import json
6
5
import re
7
6
from importlib .metadata import version
@@ -31,7 +30,7 @@ def verify_agentstack_project(path: Optional[str] = None):
31
30
sys .exit (1 )
32
31
33
32
34
- def get_package_path () -> Path :
33
+ def get_package_path () -> Union [ Path , Traversable ] :
35
34
"""This is the Path where agentstack is installed."""
36
35
if sys .version_info <= (3 , 9 ):
37
36
return Path (sys .modules ['agentstack' ].__path__ [0 ])
@@ -56,7 +55,7 @@ def get_framework(path: Optional[str] = None) -> str:
56
55
sys .exit (1 )
57
56
58
57
59
- def get_telemetry_opt_out (path : Optional [str ] = None ) -> str :
58
+ def get_telemetry_opt_out (path : Optional [str ] = None ) -> bool :
60
59
from agentstack .generation import ConfigFile
61
60
62
61
try :
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ readme = "README.md"
14
14
requires-python = " >=3.10"
15
15
16
16
dependencies = [
17
- " agentops>=0.3.18 " ,
17
+ " agentops>=0.3.19 " ,
18
18
" typer>=0.12.5" ,
19
19
" inquirer>=3.4.0" ,
20
20
" art>=6.3" ,
@@ -24,17 +24,19 @@ dependencies = [
24
24
" psutil==5.9.8" ,
25
25
" astor==0.8.1" ,
26
26
" pydantic>=2.10" ,
27
- " packaging> =23.2" ,
27
+ " packaging= =23.2" ,
28
28
" requests>=2.32" ,
29
29
" appdirs>=1.4.4"
30
30
]
31
31
32
32
[project .optional-dependencies ]
33
33
dev = [
34
- " ruff" ,
34
+ " mypy>=1.13.0" ,
35
+ " pre-commit>=4.0.1" ,
36
+ " ruff>=0.8.2" ,
35
37
]
36
38
test = [
37
- " tox>=4.23.2 " ,
39
+ " tox" ,
38
40
]
39
41
crewai = [
40
42
" crewai==0.83.0" ,
@@ -66,4 +68,11 @@ exclude = [
66
68
]
67
69
68
70
[tool .ruff .format ]
69
- quote-style = " preserve"
71
+ quote-style = " preserve"
72
+
73
+ [tool .mypy ]
74
+ exclude = [
75
+ " templates/.*" # cookiecutter paths are not compatible
76
+ ]
77
+ ignore_missing_imports = true
78
+
You can’t perform that action at this time.
0 commit comments