Skip to content

Commit 2b75506

Browse files
author
Mateusz
committed
Fix Python 3.10 formatter configuration
1 parent e3fa09a commit 2b75506

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ markers = [
188188
# Disable automatic line wrapping for Markdown files to match CI expectations
189189
wrap = 0
190190

191+
[tool.black]
192+
line-length = 88
193+
target-version = ["py310"]
194+
191195
[tool.pylint.messages_control]
192196
disable = ["C0301", "C0303", "C0114", "C0116"]
193197

tests/unit/test_mypy_validation.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,15 @@ def mypy_result(self) -> subprocess.CompletedProcess[str]:
108108
# Run mypy on the src directory with incremental mode for caching
109109
try:
110110
result = subprocess.run(
111-
[str(python_exe), "-m", "mypy", str(src_path), "--incremental"],
111+
[
112+
str(python_exe),
113+
"-m",
114+
"mypy",
115+
str(src_path),
116+
"--incremental",
117+
"--platform",
118+
"win32",
119+
],
112120
capture_output=True,
113121
text=True,
114122
timeout=300, # 5 minute timeout

0 commit comments

Comments
 (0)