Skip to content

Commit 99fe2fe

Browse files
committed
Exclude non-utf files
1 parent ab5d30e commit 99fe2fe

File tree

1 file changed

+48
-7
lines changed

1 file changed

+48
-7
lines changed

mypy_primer/projects.py

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,12 @@ def get_projects() -> list[Project]:
596596
mypy_cmd="{mypy} {paths}",
597597
pyright_cmd="{pyright} {paths}",
598598
paths=["pydantic"],
599-
deps=["annotated-types", "pydantic-core", "typing-extensions", "typing-inspection"],
599+
deps=[
600+
"annotated-types",
601+
"pydantic-core",
602+
"typing-extensions",
603+
"typing-inspection",
604+
],
600605
expected_success=("mypy",),
601606
cost={"mypy": 29},
602607
),
@@ -835,6 +840,7 @@ def get_projects() -> list[Project]:
835840
location="https://github.com/DataDog/dd-trace-py",
836841
mypy_cmd="{mypy}",
837842
pyright_cmd="{pyright}",
843+
ty_cmd="{ty} check --exclude tests/appsec/iast/fixtures/aspects/str/non_utf8_content.py --exclude tests/appsec/iast/fixtures/ast/str/non_utf8_content.py",
838844
deps=[
839845
"attrs",
840846
"types-six",
@@ -918,7 +924,13 @@ def get_projects() -> list[Project]:
918924
location="https://github.com/mesonbuild/meson",
919925
mypy_cmd="./run_mypy.py --mypy {mypy}",
920926
pyright_cmd=None,
921-
deps=["types-PyYAML", "coverage", "types-chevron", "types-PyYAML", "types-tqdm"],
927+
deps=[
928+
"types-PyYAML",
929+
"coverage",
930+
"types-chevron",
931+
"types-PyYAML",
932+
"types-tqdm",
933+
],
922934
expected_success=("mypy",),
923935
cost={"mypy": 67},
924936
),
@@ -1001,7 +1013,14 @@ def get_projects() -> list[Project]:
10011013
mypy_cmd="{mypy} django-stubs",
10021014
pyright_cmd=None,
10031015
install_cmd="{install} . ./ext",
1004-
deps=["asgiref", "django-stubs-ext", "django", "redis", "tomli", "types-PyYAML"],
1016+
deps=[
1017+
"asgiref",
1018+
"django-stubs-ext",
1019+
"django",
1020+
"redis",
1021+
"tomli",
1022+
"types-PyYAML",
1023+
],
10051024
needs_mypy_plugins=True,
10061025
expected_success=("mypy",),
10071026
cost={"mypy": 32},
@@ -1123,7 +1142,7 @@ def get_projects() -> list[Project]:
11231142
location="https://github.com/rotki/rotki",
11241143
mypy_cmd="{mypy} {paths}",
11251144
pyright_cmd="{pyright} {paths}",
1126-
paths=["rotkehlchen", "tools/data_faker"],
1145+
paths=["rotkehlchen"],
11271146
deps=["eth-typing", "types-requests", "types-setuptools"],
11281147
cost={"pyright": 60, "mypy": 9},
11291148
),
@@ -1132,7 +1151,14 @@ def get_projects() -> list[Project]:
11321151
mypy_cmd="{mypy} {paths}",
11331152
pyright_cmd="{pyright} {paths}",
11341153
paths=["."],
1135-
deps=["numpy", "pytest", "scipy-stubs", "types-setuptools", "types-ujson", "xarray"],
1154+
deps=[
1155+
"numpy",
1156+
"pytest",
1157+
"scipy-stubs",
1158+
"types-setuptools",
1159+
"types-ujson",
1160+
"xarray",
1161+
],
11361162
cost={"pyright": 45, "mypy": 78},
11371163
),
11381164
Project(
@@ -1179,7 +1205,15 @@ def get_projects() -> list[Project]:
11791205
mypy_cmd="{mypy} {paths}",
11801206
pyright_cmd="{pyright} {paths}",
11811207
paths=["."],
1182-
deps=["attrs", "cattrs", "pytest", "aiohttp", "pathspec", "jinja2", "tomli"],
1208+
deps=[
1209+
"attrs",
1210+
"cattrs",
1211+
"pytest",
1212+
"aiohttp",
1213+
"pathspec",
1214+
"jinja2",
1215+
"tomli",
1216+
],
11831217
cost={"mypy": 32},
11841218
),
11851219
Project(
@@ -1502,6 +1536,7 @@ def get_projects() -> list[Project]:
15021536
mypy_cmd="{mypy} {paths}",
15031537
pyright_cmd="{pyright} {paths}",
15041538
paths=["."],
1539+
ty_cmd="{ty} check {paths} --exclude Pythonwin/pywin/test/_dbgscript.py",
15051540
deps=["types-pywin32", "types-regex", "types-setuptools"],
15061541
cost={"mypy": 32},
15071542
),
@@ -1543,7 +1578,13 @@ def get_projects() -> list[Project]:
15431578
mypy_cmd="{mypy} {paths}",
15441579
pyright_cmd="{pyright} {paths}",
15451580
paths=["hydpy"],
1546-
deps=["numpy", "pandas-stubs", "scipy-stubs", "types-docutils", "types-networkx"],
1581+
deps=[
1582+
"numpy",
1583+
"pandas-stubs",
1584+
"scipy-stubs",
1585+
"types-docutils",
1586+
"types-networkx",
1587+
],
15471588
cost={"mypy": 80},
15481589
),
15491590
Project(

0 commit comments

Comments
 (0)