Skip to content

Commit 39e5f9b

Browse files
committed
feat(dev): setup pyrefly
1 parent 8bd154a commit 39e5f9b

File tree

4 files changed

+55
-3
lines changed

4 files changed

+55
-3
lines changed

.zed/settings.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"languages": {
3+
"Python": {
4+
"language_servers": ["pyrefly", "ruff", "!pyright", "!pylsp"]
5+
}
6+
},
7+
"lsp": {
8+
"pyrefly": {
9+
"binary": {
10+
"path": ".venv/bin/pyrefly",
11+
"arguments": ["lsp"]
12+
},
13+
"settings": {
14+
"python": {
15+
"pythonPath": ".venv/bin/python"
16+
},
17+
"pyrefly": {
18+
"project_includes": ["src/**/*.py", "tests/**/*.py"],
19+
"project_excludes": ["**/.[!/.]*", "**/*venv/**"],
20+
"search_path": ["src"],
21+
"ignore_errors_in_generated_code": true
22+
}
23+
}
24+
},
25+
"ruff": {
26+
"initialization_options": {
27+
"settings": {
28+
"lineLength": 80,
29+
"lint": {
30+
"extendSelect": ["I"]
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ version-file = "src/apmodel/_version.py"
5151
dev = [
5252
"git-cliff>=2.10.0",
5353
"mkdocstrings-python>=2.0.1",
54+
"pyrefly>=0.46.0",
5455
"pytest>=8.4.1",
5556
"pytest-cov>=7.0.0",
5657
"zensical>=0.0.13",

pyrightconfig.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

uv.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)