Skip to content

Commit a81292c

Browse files
authored
[ez][lint] Make inclusion path for mypy slightly broader (#6937)
I noticed that some files weren't getting getting checked, so I am adding them here
1 parent 31c9785 commit a81292c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/scripts/benchmarks/gather_runners_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from logging import info
1414
from typing import Any, Dict
1515

16-
import psutil
16+
import psutil # type: ignore[import-untyped]
1717

1818

1919
logging.basicConfig(level=logging.INFO)
@@ -32,7 +32,7 @@ def get_runner_info() -> Dict[str, Any]:
3232
device_type = ""
3333

3434
try:
35-
import torch
35+
import torch # type: ignore[import-not-found]
3636

3737
if torch.cuda.is_available():
3838
if torch.version.hip:

.lintrunner.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ init_command = [
3838
[[linter]]
3939
code = 'MYPY'
4040
include_patterns = [
41-
'.github/scripts/*.py',
41+
'.github/scripts/**/*.py',
4242
'aws/lambda/**/.py',
4343
'stats/**/*.py',
4444
'stats/**/*.pyi',
4545
'tools/**/*.py',
4646
'tools/**/*.pyi',
4747
'torchci/**/*.py',
4848
'torchci/**/*.pyi',
49-
's3_management/*.py',
49+
's3_management/**/*.py',
5050
]
5151
exclude_patterns = [
5252
'aws/lambda/servicelab-ingestor/**',

0 commit comments

Comments
 (0)