Skip to content

Commit 93250f0

Browse files
SigureMoCopilot
andauthored
🏷️ types: move to ty (#79)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3f98ee1 commit 93250f0

5 files changed

Lines changed: 25 additions & 39 deletions

File tree

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"recommendations": [
33
"ms-python.python",
4-
"ms-python.vscode-pylance",
4+
"astral-sh.ty",
55
"charliermarsh.ruff",
66
"esbenp.prettier-vscode",
77
"EditorConfig.EditorConfig",

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fmt:
1212
prettier --write '**/*.md'
1313

1414
lint:
15-
uv run pyright src/moelib tests
15+
uv run ty check --error-on-warning src/moelib tests
1616
uv run ruff check .
1717

1818
fmt-docs:

pyproject.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,12 @@ moelib = "moelib.__main__:main"
3333

3434
[dependency-groups]
3535
dev = [
36-
"pyright>=1.1.407",
36+
"ty>=0.0.4",
3737
"ruff>=0.14.10",
3838
"pytest>=9.0.2",
3939
"pytest-rerunfailures>=16.1",
4040
]
4141

42-
[tool.pyright]
43-
include = ["src/moelib", "tests"]
44-
pythonVersion = "3.10"
45-
typeCheckingMode = "strict"
46-
4742
[tool.ruff]
4843
line-length = 120
4944
target-version = "py310"
@@ -88,8 +83,6 @@ select = [
8883
]
8984
ignore = [
9085
"E501", # line too long, duplicate with ruff fmt
91-
"F401", # imported but unused, duplicate with pyright
92-
"F841", # local variable is assigned to but never used, duplicate with pyright
9386
]
9487
future-annotations = true
9588

src/moelib/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def main() -> None:
99
parser = argparse.ArgumentParser(prog="moelib", description="A moe moe project")
1010
parser.add_argument("-v", "--version", action="version", version=__version__)
11-
args = parser.parse_args() # type: ignore
11+
parser.parse_args()
1212

1313

1414
if __name__ == "__main__":

uv.lock

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

0 commit comments

Comments
 (0)