Skip to content

Commit 168ea35

Browse files
committed
pyproject.toml: mypy dont complain about unused ignores.
Helps to resolve differences between mypy and ruff linters. Also add --color=yes to pytest addopts.
1 parent c1428e4 commit 168ea35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ files = ["src"]
6565
python_version = "3.9"
6666
disallow_untyped_defs = true
6767
warn_return_any = true
68-
warn_unused_ignores = true
68+
warn_unused_ignores = false
6969
mypy_path = "typings"
7070

7171
[tool.ruff]
@@ -75,7 +75,7 @@ lint.extend-select = ["I"] # Enable ruffs isort rules (for compat with vscode r
7575

7676
[tool.pytest.ini_options]
7777
minversion = "6.0"
78-
addopts = ["--cov"]
78+
addopts = ["--cov", "--color=yes"]
7979

8080
[tool.coverage]
8181
run.source = ["src"]

src/mpremote_path/mpremote_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __iter__(self) -> Iterator[MPRemoteDirEntry]:
139139
# For python<=3.9: Override accessor class to handle micropython paths
140140
from pathlib import _NormalAccessor # type: ignore
141141

142-
class _MPRemoteAccessor(_NormalAccessor):
142+
class _MPRemoteAccessor(_NormalAccessor): # type: ignore
143143
@staticmethod
144144
def stat(path: str) -> os.stat_result:
145145
return MPRemotePath.board.fs_stat(path)

0 commit comments

Comments
 (0)