Skip to content

Commit 306f601

Browse files
chore: add DeepSource config scoped to hand-written code (#96)
Enables DeepSource analysis on the repo. The SDK is mostly Fern-generated, so generated surfaces (raw_client, client, socket_client, types, errors, core, environment, package __init__) are excluded so findings focus on hand-written code: crew, cli, helpers, tools, telemetry. Python analyzer with mypy type checking (line length 120 to match ruff), plus the secrets and test-coverage analyzers.
1 parent 86842be commit 306f601

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.deepsource.toml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# DeepSource config. Takes effect once the DeepSource GitHub app is activated on the
2+
# repo (it is). The SDK is mostly Fern-generated, so the generated surfaces are excluded
3+
# to keep analysis focused on hand-written code (crew, cli, helpers, tools, telemetry).
4+
# Analyzer reference: https://docs.deepsource.com/docs/platform/reference/core-analyzers
5+
# Tune exclude_patterns if the generated layout changes.
6+
version = 1
7+
8+
exclude_patterns = [
9+
"src/smallestai/**/raw_client.py",
10+
"src/smallestai/**/client.py",
11+
"src/smallestai/**/socket_client.py",
12+
"src/smallestai/**/types/**",
13+
"src/smallestai/**/errors/**",
14+
"src/smallestai/core/**",
15+
"src/smallestai/environment.py",
16+
"src/smallestai/**/__init__.py",
17+
]
18+
19+
test_patterns = [
20+
"tests/**",
21+
]
22+
23+
[[analyzers]]
24+
name = "python"
25+
enabled = true
26+
27+
[analyzers.meta]
28+
runtime_version = "3.x.x"
29+
type_checker = "mypy"
30+
max_line_length = 120
31+
32+
[[analyzers]]
33+
name = "secrets"
34+
enabled = true
35+
36+
# test-coverage can be added once CI uploads a coverage report to DeepSource
37+
# (deepsource report --analyzer test-coverage). Left off until then to avoid a
38+
# perpetually-pending check.

0 commit comments

Comments
 (0)