Skip to content

Commit 5c4134b

Browse files
committed
lint: silence deprecated flake8-mypy noise and bump mypy.ini to py3.12 (#1955)
Signed-off-by: WatchTree-19 <119982314+WatchTree-19@users.noreply.github.com>
1 parent 44d42f1 commit 5c4134b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.flake8rc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ max-line-length = 120
33

44
# N802: Function names have to be lower case. This is for GRPC service.
55
# E999: Mistaken error see https://github.com/PyCQA/pycodestyle/issues/584
6-
ignore = N802,E999,W503
6+
# T499: Output from `flake8-mypy`, which has been deprecated since 2020 and is
7+
# stuck on an older interpreter under Ubuntu noble. The dedicated `mypy` linter
8+
# entry in `.arclint` already runs `mypy --config-file=mypy.ini` against the
9+
# proper interpreter, so flake8-mypy is redundant here. Silencing T499 avoids
10+
# the broken-plugin output without touching the linter image. See issue #1955.
11+
ignore = N802,E999,W503,T499

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[mypy]
2-
python_version = 3.8
2+
python_version = 3.12
33
show_column_numbers = True
44
show_error_context = False
55

0 commit comments

Comments
 (0)