Skip to content

Commit dc18c5a

Browse files
committed
Exclude non-utf files
1 parent ab5d30e commit dc18c5a

File tree

1 file changed

+48
-8
lines changed

1 file changed

+48
-8
lines changed

mypy_primer/projects.py

Lines changed: 48 additions & 8 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
),
@@ -918,7 +923,13 @@ def get_projects() -> list[Project]:
918923
location="https://github.com/mesonbuild/meson",
919924
mypy_cmd="./run_mypy.py --mypy {mypy}",
920925
pyright_cmd=None,
921-
deps=["types-PyYAML", "coverage", "types-chevron", "types-PyYAML", "types-tqdm"],
926+
deps=[
927+
"types-PyYAML",
928+
"coverage",
929+
"types-chevron",
930+
"types-PyYAML",
931+
"types-tqdm",
932+
],
922933
expected_success=("mypy",),
923934
cost={"mypy": 67},
924935
),
@@ -1001,7 +1012,14 @@ def get_projects() -> list[Project]:
10011012
mypy_cmd="{mypy} django-stubs",
10021013
pyright_cmd=None,
10031014
install_cmd="{install} . ./ext",
1004-
deps=["asgiref", "django-stubs-ext", "django", "redis", "tomli", "types-PyYAML"],
1015+
deps=[
1016+
"asgiref",
1017+
"django-stubs-ext",
1018+
"django",
1019+
"redis",
1020+
"tomli",
1021+
"types-PyYAML",
1022+
],
10051023
needs_mypy_plugins=True,
10061024
expected_success=("mypy",),
10071025
cost={"mypy": 32},
@@ -1123,7 +1141,7 @@ def get_projects() -> list[Project]:
11231141
location="https://github.com/rotki/rotki",
11241142
mypy_cmd="{mypy} {paths}",
11251143
pyright_cmd="{pyright} {paths}",
1126-
paths=["rotkehlchen", "tools/data_faker"],
1144+
paths=["rotkehlchen"],
11271145
deps=["eth-typing", "types-requests", "types-setuptools"],
11281146
cost={"pyright": 60, "mypy": 9},
11291147
),
@@ -1132,7 +1150,14 @@ def get_projects() -> list[Project]:
11321150
mypy_cmd="{mypy} {paths}",
11331151
pyright_cmd="{pyright} {paths}",
11341152
paths=["."],
1135-
deps=["numpy", "pytest", "scipy-stubs", "types-setuptools", "types-ujson", "xarray"],
1153+
deps=[
1154+
"numpy",
1155+
"pytest",
1156+
"scipy-stubs",
1157+
"types-setuptools",
1158+
"types-ujson",
1159+
"xarray",
1160+
],
11361161
cost={"pyright": 45, "mypy": 78},
11371162
),
11381163
Project(
@@ -1179,7 +1204,15 @@ def get_projects() -> list[Project]:
11791204
mypy_cmd="{mypy} {paths}",
11801205
pyright_cmd="{pyright} {paths}",
11811206
paths=["."],
1182-
deps=["attrs", "cattrs", "pytest", "aiohttp", "pathspec", "jinja2", "tomli"],
1207+
deps=[
1208+
"attrs",
1209+
"cattrs",
1210+
"pytest",
1211+
"aiohttp",
1212+
"pathspec",
1213+
"jinja2",
1214+
"tomli",
1215+
],
11831216
cost={"mypy": 32},
11841217
),
11851218
Project(
@@ -1459,7 +1492,7 @@ def get_projects() -> list[Project]:
14591492
Project(
14601493
location="https://github.com/python/cpython",
14611494
mypy_cmd="{mypy} --config-file Tools/peg_generator/mypy.ini",
1462-
ty_cmd="{ty} check --project='Tools/peg_generator'",
1495+
ty_cmd="{ty} check --project='Tools/peg_generator' --exclude tests/appsec/iast/fixtures/aspects/str/non_utf8_content.py --exclude tests/appsec/iast/fixtures/ast/str/non_utf8_content.py",
14631496
paths=["Tools/peg_generator"],
14641497
name_override="CPython (peg_generator)",
14651498
pyright_cmd=None,
@@ -1502,6 +1535,7 @@ def get_projects() -> list[Project]:
15021535
mypy_cmd="{mypy} {paths}",
15031536
pyright_cmd="{pyright} {paths}",
15041537
paths=["."],
1538+
ty_cmd="{ty} check {paths} --exclude Pythonwin/pywin/test/_dbgscript.py",
15051539
deps=["types-pywin32", "types-regex", "types-setuptools"],
15061540
cost={"mypy": 32},
15071541
),
@@ -1543,7 +1577,13 @@ def get_projects() -> list[Project]:
15431577
mypy_cmd="{mypy} {paths}",
15441578
pyright_cmd="{pyright} {paths}",
15451579
paths=["hydpy"],
1546-
deps=["numpy", "pandas-stubs", "scipy-stubs", "types-docutils", "types-networkx"],
1580+
deps=[
1581+
"numpy",
1582+
"pandas-stubs",
1583+
"scipy-stubs",
1584+
"types-docutils",
1585+
"types-networkx",
1586+
],
15471587
cost={"mypy": 80},
15481588
),
15491589
Project(

0 commit comments

Comments
 (0)