Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Fix nox file modules for checks
haxzie committed
Oct 1, 2025 at 17:37 UTC
aec4158d745c39627f701f964173dafb37eef933
1 file changed
+15
-6
python/noxfile.py
+15
-6
@@ -4,7 +4,16 @@ from nox.sessions import Session
4
5
nox.options.default_venv_backend = "uv"
6
7
-modules = [
7
+# Modules for both ruff and mypy
8
+modules_for_mypy = [
9
+ "composio/",
10
+ "providers/",
11
+ "tests/",
12
+ "scripts/",
13
+]
14
+
15
+# Modules for ruff only (includes examples)
16
+modules_for_ruff = [
17
"composio/",
18
"providers/",
19
"tests/",
@@ -39,16 +48,16 @@ ruff = [
48
def fmt(session: Session):
49
"""Format code"""
50
session.install("ruff")
42
- session.run("ruff", "check", "--select", "I", "--fix", *modules)
43
- session.run("ruff", "format", *modules)
51
+ session.run("ruff", "check", "--select", "I", "--fix", *modules_for_ruff)
52
+ session.run("ruff", "format", *modules_for_ruff)
53
54
55
@nox.session
56
def chk(session: Session):
57
"""Check for linter and type issues"""
58
session.install(".", "ruff", "mypy==1.13.0", *type_stubs)
50
- session.run(*ruff, "check", *modules)
51
- for module in modules:
59
+ session.run(*ruff, "check", *modules_for_ruff)
60
+ for module in modules_for_mypy:
61
session.run("mypy", "--config-file", "config/mypy.ini", module)
62
63
@@ -56,4 +65,4 @@ def chk(session: Session):
65
def fix(session: Session):
66
"""Fix linter issues"""
67
session.install("ruff")
59
- session.run(*ruff, "check", "--fix", *modules)
68
+ session.run(*ruff, "check", "--fix", *modules_for_ruff)