mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-11-24 19:56:19 +01:00
fix(lint): fix S603 in engine.py and D100 in conftest.py
- Add noqa: S603 for trusted internal C engine subprocess call - Add module docstring to conftest.py - Remove per-file ignores for engine.py and conftest.py from pyproject.toml
This commit is contained in:
parent
2f13a8c228
commit
77119ff197
@ -53,7 +53,7 @@ class RandomEngine:
|
|||||||
|
|
||||||
def _call_engine(self, args: list[str], *, timeout: float) -> str:
|
def _call_engine(self, args: list[str], *, timeout: float) -> str:
|
||||||
try:
|
try:
|
||||||
proc = subprocess.run(
|
proc = subprocess.run( # noqa: S603 - trusted internal C engine binary
|
||||||
[self.engine_path, *args],
|
[self.engine_path, *args],
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
text=True,
|
text=True,
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
"""Pytest configuration and fixtures for lichess_bot tests."""
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user